Skip to content

Commit

Permalink
tox: Do not use {posargs} in setenv (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia authored Nov 12, 2023
1 parent d110228 commit 6ffa105
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ allowlist_externals =
setenv =
{[base]setenv}
{[base-pytest]setenv}
PYTEST_ADDOPTS = {[base-pytest]addopts} --no-cov {posargs}
PYTEST_ADDOPTS = {[base-pytest]addopts} --no-cov
commands_pre =
{[pdm]sync} --dev --group=test
commands =
tests: pytest -m "not unit and not functional"
docstrings: pytest --doctest-modules {toxinidir}{/}src
docstrings: pytest --doctest-modules {[docs]examples_dir}{/}tutorials{/}ftp_server
docstrings: pytest --doctest-glob="*.rst" {[docs]source_dir}
tests: pytest -m "not unit and not functional" {posargs}
docstrings: pytest --doctest-modules {posargs} {toxinidir}{/}src
docstrings: pytest --doctest-modules {posargs} {[docs]examples_dir}{/}tutorials{/}ftp_server
docstrings: pytest --doctest-glob="*.rst" {posargs} {[docs]source_dir}

[testenv:{py311,py312}-{unit,functional}-{__standard__,cbor,msgpack,encryption,sniffio}]
package = wheel
Expand All @@ -57,7 +57,7 @@ allowlist_externals =
setenv =
{[base]setenv}
{[base-pytest]setenv}
PYTEST_ADDOPTS = {[base-pytest]addopts} --cov --cov-report='' {posargs}
PYTEST_ADDOPTS = {[base-pytest]addopts} --cov --cov-report=''
COVERAGE_FILE = .coverage.{envname}
unit: TESTS_ROOTDIR = {[base-pytest]unit_tests_rootdir}
functional: TESTS_ROOTDIR = {[base-pytest]functional_tests_rootdir}
Expand All @@ -70,11 +70,11 @@ commands_pre =
sniffio: {[pdm]sync} --prod --group=sniffio
{[pdm]sync} --dev --group=test
commands =
__standard__: pytest -n "{env:PYTEST_MAX_WORKERS:auto}" --dist={[base-pytest]xdist_dist} -m "not feature" {env:TESTS_ROOTDIR}
cbor: pytest -m "feature_cbor" {env:TESTS_ROOTDIR}
msgpack: pytest -m "feature_msgpack" {env:TESTS_ROOTDIR}
encryption: pytest -m "feature_encryption" {env:TESTS_ROOTDIR}
sniffio: pytest -m "feature_sniffio" {env:TESTS_ROOTDIR}
__standard__: pytest -n "{env:PYTEST_MAX_WORKERS:auto}" --dist={[base-pytest]xdist_dist} -m "not feature" {posargs} {env:TESTS_ROOTDIR}
cbor: pytest -m "feature_cbor" {posargs} {env:TESTS_ROOTDIR}
msgpack: pytest -m "feature_msgpack" {posargs} {env:TESTS_ROOTDIR}
encryption: pytest -m "feature_encryption" {posargs} {env:TESTS_ROOTDIR}
sniffio: pytest -m "feature_sniffio" {posargs} {env:TESTS_ROOTDIR}

[testenv:{py311,py312}-functional-{asyncio_proactor,uvloop}]
package = wheel
Expand All @@ -86,7 +86,7 @@ allowlist_externals =
setenv =
{[base]setenv}
{[base-pytest]setenv}
PYTEST_ADDOPTS = {[base-pytest]addopts} --cov --cov-report='' {posargs}
PYTEST_ADDOPTS = {[base-pytest]addopts} --cov --cov-report=''
COVERAGE_FILE = .coverage.{envname}
TESTS_ROOTDIR = {[base-pytest]functional_tests_rootdir}
asyncio_proactor: ASYNCIO_EVENTLOOP = asyncio-proactor
Expand All @@ -97,7 +97,7 @@ commands_pre =
{[pdm]sync} --dev --group=test
uvloop: {[pdm]sync} --dev --group=uvloop
commands =
pytest -n "{env:PYTEST_MAX_WORKERS:auto}" --dist={[base-pytest]xdist_dist} --asyncio-event-loop="{env:ASYNCIO_EVENTLOOP}" -m "asyncio and not feature" {env:TESTS_ROOTDIR}
pytest -n "{env:PYTEST_MAX_WORKERS:auto}" --dist={[base-pytest]xdist_dist} --asyncio-event-loop="{env:ASYNCIO_EVENTLOOP}" -m "asyncio and not feature" {posargs} {env:TESTS_ROOTDIR}

[testenv:coverage]
skip_install = True
Expand Down

0 comments on commit 6ffa105

Please sign in to comment.