Skip to content

Commit

Permalink
chore: add --dist=worksteal to pytest opts (#4380)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Jul 24, 2024
1 parent 935222f commit 3452b8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/.env-ci
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
ANALYTICS_DATABASE_URL=postgres://postgres:postgres@localhost:5432/analytics
PYTEST_ADDOPTS=--cov . --cov-report xml -n auto --dist worksteal --ci
PYTEST_ADDOPTS=--cov . --cov-report xml --ci
GUNICORN_LOGGER_CLASS=util.logging.GunicornJsonCapableLogger
COVERAGE_CORE=sysmon
2 changes: 1 addition & 1 deletion api/.env-local
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DATABASE_URL=postgresql://postgres:password@localhost:5432/flagsmith
DJANGO_SETTINGS_MODULE=app.settings.local
PYTEST_ADDOPTS=--cov . --cov-report html -n auto
PYTEST_ADDOPTS=--cov . --cov-report html
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ known_third_party = [
skip = ['migrations', '.venv', '.direnv']

[tool.pytest.ini_options]
addopts = ['--ds=app.settings.test', '-vvvv', '-p', 'no:warnings']
addopts = ['--ds=app.settings.test', '--dist=worksteal', '-n=auto', '-vvvv', '-p', 'no:warnings']
console_output_style = 'count'

[tool.poetry]
Expand Down

0 comments on commit 3452b8a

Please sign in to comment.