Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/scripts/test_pkgcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def test_script_run(capsys):
"""Test regular code path for running scripts."""
script = partial(run, project)
script = staticmethod(partial(run, project))

with patch(f"{project}.scripts.import_module") as import_module:
import_module.side_effect = ImportError("baz module doesn't exist")
Expand Down Expand Up @@ -40,7 +40,7 @@ def test_script_run(capsys):


class TestPkgcheck:
script = partial(run, project)
script = staticmethod(partial(run, project))

def test_version(self, capsys):
with patch("sys.argv", [project, "--version"]):
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/test_pkgcheck_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class TestPkgcheckCache:
script = partial(run, project)
script = staticmethod(partial(run, project))

@pytest.fixture(autouse=True)
def _setup(self, testconfig, tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/test_pkgcheck_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class TestPkgcheckCi:
script = partial(run, "pkgcheck")
script = staticmethod(partial(run, "pkgcheck"))

@pytest.fixture(autouse=True)
def _setup(self, testconfig, tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/test_pkgcheck_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class TestPkgcheckShow:
script = partial(run, project)
script = staticmethod(partial(run, project))

@pytest.fixture(autouse=True)
def _setup(self, testconfig):
Expand Down
Loading