Skip to content

Commit

Permalink
Move fixed_version_number fixture into conftest.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Dec 24, 2020
1 parent 228dcda commit c5ec350
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@
# MA 02110-1301, USA.
#

# 3rd party
import pytest

# this package
from repo_helper.configuration import metadata

pytest_plugins = ("domdf_python_tools.testing", "repo_helper.testing")


@pytest.fixture()
def fixed_version_number(monkeypatch):
monkeypatch.setattr(metadata.version, "validator", lambda *args: "2020.12.18")
yield
6 changes: 0 additions & 6 deletions tests/test_cli/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ def test_changelog(tmp_repo, file_regression: FileRegressionFixture):
]


@pytest.fixture()
def fixed_version_number(monkeypatch):
monkeypatch.setattr(metadata.version, "validator", lambda *args: "2020.12.18")
yield


class ShowRequirementsTest:

@version_specific
Expand Down

0 comments on commit c5ec350

Please sign in to comment.