Skip to content

Commit

Permalink
Always use "installed_schemas" fixtures
Browse files Browse the repository at this point in the history
Avoid missing files on Windows GHA runners.
  • Loading branch information
khaeru committed Jan 14, 2025
1 parent 5f21649 commit b85d191
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest_plugins = ["sdmx.testing"]
pytest_plugins = ("sdmx.testing",)
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ markers = [
"network: tests requiring a network connection",
"source: slower, network tests of individual SDMX web services",
]
usefixtures = "installed_schemas"

[tool.ruff.lint]
select = ["C9", "E", "F", "I", "W"]
Expand Down
4 changes: 2 additions & 2 deletions sdmx/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ def installed_schemas(mock_gh_api, tmp_path_factory):
dir = tmp_path_factory.mktemp("schemas")

with mock_gh_api:
install_schemas(dir.joinpath("2.1"), Version["2.1"])
install_schemas(dir.joinpath("3.0"), Version["3.0.0"])
install_schemas(dir, Version["2.1"])
install_schemas(dir, Version["3.0.0"])

yield dir

Expand Down

0 comments on commit b85d191

Please sign in to comment.