Skip to content

Commit

Permalink
Minor pytest improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jan 9, 2025
1 parent f4e8b7b commit c1cf89e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .config/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ griffe==1.5.4
gunicorn==23.0.0
hjson==3.1.0
htmlmin2==0.1.13
identify==2.6.3
identify==2.6.5
idna==3.10
importlib-metadata==8.5.0
iniconfig==2.0.0
Expand Down Expand Up @@ -87,7 +87,7 @@ mkdocstrings==0.27.0
mkdocstrings-python==1.13.0
molecule==24.12.0
more-itertools==10.5.0
mypy==1.14.0
mypy==1.14.1
mypy-extensions==1.0.0
nodeenv==1.9.1
onigurumacffi==1.3.0
Expand All @@ -102,7 +102,7 @@ pathable==0.4.3
pathspec==0.12.1
pbr==6.1.0
pexpect==4.9.0
pillow==11.0.0
pillow==11.1.0
platformdirs==4.3.6
pluggy==1.5.0
pre-commit==4.0.1
Expand All @@ -111,11 +111,12 @@ pycparser==2.22
pydoclint==0.5.14
pygments==2.18.0
pylint==3.3.3
pymdown-extensions==10.13
pymdown-extensions==10.14
pyproject-api==1.8.0
pytest==8.3.4
pytest-ansible==24.12.0
pytest-instafail==0.5.0
pytest-plus==0.7.0
pytest-xdist==3.6.1
python-daemon==3.1.2
python-dateutil==2.9.0.post0
Expand All @@ -131,7 +132,7 @@ rich==13.9.4
rpds-py==0.22.3
ruamel-yaml==0.18.6
ruamel-yaml-clib==0.2.12
ruff==0.8.4
ruff==0.9.0
six==1.17.0
soupsieve==2.6
sqlparse==0.5.3
Expand All @@ -144,7 +145,7 @@ toml-sort==0.24.2
tomlkit==0.13.2
tox==4.23.2
tox-ansible==24.12.0
types-pyyaml==6.0.12.20241221
types-pyyaml==6.0.12.20241230
types-requests==2.32.0.20241016
tzdata==2024.2
urllib3==2.3.0
Expand Down
1 change: 1 addition & 0 deletions .config/requirements-test.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pydoclint
pylint
pytest
pytest-instafail
pytest-plus
pytest-xdist
requests
ruff
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ repos:
- id: tox-ini-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.0
hooks:
- id: ruff
args:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ansible_dev_tools.version_builder import PKGS

from .test_server_creator_v1 import test_collection_v1 as tst_collection_v1
from .test_server_creator_v1 import test_error as tst_error
from .test_server_creator_v1 import test_error_v1 as tst_error
from .test_server_creator_v1 import test_playbook_v1 as tst_playbook_v1
from .test_server_info import test_metadata as tst_get_metadata

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_server_creator_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


@pytest.mark.parametrize("resource", ("playbook", "collection"))
def test_error(server_url: str, resource: str) -> None:
def test_error_v1(server_url: str, resource: str) -> None:
"""Test the error response.
Args:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_server_creator_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


@pytest.mark.parametrize("resource", ("playbook", "collection"))
def test_error(server_url: str, resource: str) -> None:
def test_error_v2(server_url: str, resource: str) -> None:
"""Test the error response.
Args:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ commands =
./tools/ee.sh
allowlist_externals =
./tools/ee.sh
editable = true

[testenv:devspaces]
description = Build devspaces container image for current architecture
Expand Down

0 comments on commit c1cf89e

Please sign in to comment.