Skip to content

Commit

Permalink
Update pytest config and requirements to run tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed May 8, 2024
1 parent 36aa29e commit 34e0590
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
addopts = --ds=config.settings.test --reuse-db
addopts = --ds=config.settings.test --reuse-db -n auto
python_files = tests.py test_*.py
filterwarnings =
# Convert all warnings to errors.
Expand Down
4 changes: 4 additions & 0 deletions requirements/test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
types-requests
# Pytest
pytest # https://github.com/pytest-dev/pytest
# Parallelized tests
pytest-xdist # https://github.com/pytest-dev/pytest-xdist
# Coverage integrated with pytest
pytest-cov
# Pytest improvements - progress bar, etc.
pytest-sugar # https://github.com/Frozenball/pytest-sugar
# Mock HTTP responses
Expand Down
6 changes: 6 additions & 0 deletions requirements/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ django-test-migrations==1.3.0
# via -r requirements/test-requirements.in
exceptiongroup==1.2.0
# via pytest
execnet==2.1.1
# via pytest-xdist
factory-boy==3.3.0
# via -r requirements/test-requirements.in
faker==23.2.1
Expand All @@ -44,10 +46,14 @@ pytest==8.2.0
# -r requirements/test-requirements.in
# pytest-django
# pytest-sugar
pytest-cov==5.0.0
# via -r requirements/test-requirements.in
pytest-django==4.8.0
# via -r requirements/test-requirements.in
pytest-sugar==1.0.0
# via -r requirements/test-requirements.in
pytest-xdist==3.6.1
# via -r requirements/test-requirements.in
python-dateutil==2.8.2
# via faker
pyyaml==6.0.1
Expand Down

0 comments on commit 34e0590

Please sign in to comment.