Skip to content

Commit

Permalink
move test requirements away from normal requirements (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansnigirev authored Aug 27, 2020
1 parent 5b0d5cf commit af073de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test:
script:
- pip3 install -r requirements.txt
- pip3 install -e .
- pip3 install -r test_requirements.txt
# pytest --docker not working? Uncomment this for better debugging:
# - python3 tests/conftest.py
- pytest --docker
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ before_install:
- set -o errexit; source ./tests/install_bitcoind.sh
script:
- pip install -e .
- pip install -r test_requirements.txt
- pytest
5 changes: 2 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Install dependencies:

HWI support requires `libusb` (necessary? Or is `pip install libusb1` sufficient?):
* Ubuntu/Debian: `sudo apt install libusb-1.0-0-dev libudev-dev`
* macOS: `brew install libusb`

Expand All @@ -11,7 +10,6 @@ git clone https://github.com/cryptoadvance/specter-desktop.git
cd specter-desktop
virtualenv --python=python3 .env
source .env/bin/activate
pip3 install -r requirements.txt
pip3 install -e .
```

Expand All @@ -25,8 +23,9 @@ python3 -m cryptoadvance.specter server
# Run the tests
Run the tests (still very limited):

```
```sh
pip3 install -e .
pip3 install -r test_requirements.txt

# needs a bitcoind on your path
pytest
Expand Down
4 changes: 0 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ python-dotenv==0.13.0
requests==2.23.0
six==1.12.0
stem==1.8.0
# only for testing currently
docker==4.1.0
pytest==5.2.2
PySocks==1.7.1
4 changes: 4 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# requirements for testing
docker==4.1.0
pytest==5.2.2
PySocks==1.7.1

0 comments on commit af073de

Please sign in to comment.