Skip to content

Commit 4bad4f0

Browse files
committed
Update contributing doc regarding tests
1 parent c7b75e9 commit 4bad4f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ If you want to run all tests without install `dev` requirements, you can install
2727
pip install -e .['test']
2828
```
2929

30-
To run tests, use `test` command with `setup.py`:
30+
To run tests, use `pytest`:
3131

3232
```shell
33-
python setup.py test
33+
pytest
3434
```
3535

3636
Or, use `pytest` with customize options like:
3737

3838
```shell
39-
pytest tests/test_openapi.py --maxfail=1
39+
pytest tests/extensions/openapi/ --maxfail=1
4040
```
4141

4242
Furthermore, you can use `tox` to run tests with different environment configs to verify compatibility.
@@ -82,8 +82,8 @@ In `dev` requirements, some modules related to code style are already included:
8282
Please make sure your contribution will using the same styling tools. You can use following commands to apply them to your contributions:
8383

8484
```shell
85-
black --verbose sanic_openapi tests
86-
isort --recursive sanic_openapi tests
85+
black --verbose sanic_ext tests
86+
isort --recursive sanic_ext tests
8787
```
8888

8989
## Build Document

0 commit comments

Comments
 (0)