Skip to content

Commit

Permalink
Fix documentation references to tests folder
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Sep 8, 2019
1 parent 26d76cd commit f2cbc5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ make it pass. It means you have introduced a regression.
#### Test the whole project

```bash
pytest freqtrade
pytest
```

#### Test only one file

```bash
pytest freqtrade/tests/test_<file_name>.py
pytest tests/test_<file_name>.py
```

#### Test only one method from one file

```bash
pytest freqtrade/tests/test_<file_name>.py::test_<method_name>
pytest tests/test_<file_name>.py::test_<method_name>
```

### 2. Test if your code is PEP8 compliant
Expand Down
2 changes: 1 addition & 1 deletion docs/developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ These are available from `conftest.py` and can be imported in any test module.
A sample check looks as follows:

``` python
from freqtrade.tests.conftest import log_has, log_has_re
from tests.conftest import log_has, log_has_re

def test_method_to_test(caplog):
method_to_test()
Expand Down
2 changes: 1 addition & 1 deletion docs/plotting.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ freqtrade plot-profit -p LTC/BTC --db-url sqlite:///tradesv3.sqlite --trade-sou
```

``` bash
freqtrade plot-profit --datadir ../freqtrade/freqtrade/tests/testdata-20171221/ -p LTC/BTC
freqtrade plot-profit --datadir user_data/data/binance_save/ -p LTC/BTC
```

0 comments on commit f2cbc5f

Please sign in to comment.