Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 16, 2024
1 parent 1f89066 commit 88c306c
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions tests/test_pcdl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 3rd party
# stdlib
import sys

# 3rd party
import pytest
from _pytest.fixtures import FixtureRequest
from betamax import Betamax # type: ignore
Expand Down Expand Up @@ -252,10 +254,24 @@ def pcdl_cassette(request: FixtureRequest):
("Styrene", "100-42-5"),
]

@pytest.mark.parametrize("python_version", [
pytest.param("<=3.8", marks=pytest.mark.skipif(sys.version_info >= (3, 9), reason="Output changes after Python 3.8")),
pytest.param(">=3.9", marks=pytest.mark.skipif(sys.version_info < (3, 9), reason="Output changes after Python 3.8")),
])

@pytest.mark.parametrize(
"python_version",
[
pytest.param(
"<=3.8",
marks=pytest.mark.skipif(
sys.version_info >= (3, 9), reason="Output changes after Python 3.8"
)
),
pytest.param(
">=3.9",
marks=pytest.mark.skipif(
sys.version_info < (3, 9), reason="Output changes after Python 3.8"
)
),
]
)
@pytest.mark.usefixtures("pcdl_cassette", "python_version")
def test_make_pcdl_csv(
tmp_pathplus: PathPlus,
Expand Down

0 comments on commit 88c306c

Please sign in to comment.