Skip to content

Commit 70f58af

Browse files
committed
tests: use staticmethod to decrease warnings
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 98cfd69 commit 70f58af

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/scripts/test_pkgdev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_script_run(capsys):
4242

4343
class TestPkgdev:
4444

45-
script = partial(run, project)
45+
script = staticmethod(partial(run, project))
4646

4747
def test_version(self, capsys):
4848
with patch('sys.argv', [project, '--version']):

tests/scripts/test_pkgdev_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_commit_tags(self, capsys, repo, make_git_repo, tool):
168168

169169
class TestPkgdevCommit:
170170

171-
script = partial(run, 'pkgdev')
171+
script = staticmethod(partial(run, 'pkgdev'))
172172

173173
@pytest.fixture(autouse=True)
174174
def _setup(self, tmp_path):

tests/scripts/test_pkgdev_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_invalid_atom_target(self, repo, capsys, tool):
135135

136136
class TestPkgdevManifest:
137137

138-
script = partial(run, 'pkgdev')
138+
script = staticmethod(partial(run, 'pkgdev'))
139139

140140
@pytest.fixture(autouse=True)
141141
def _setup(self):

tests/scripts/test_pkgdev_mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_email_not_rites(self, repo, make_git_repo, capsys, tool):
9999

100100
class TestPkgdevMask:
101101

102-
script = partial(run, 'pkgdev')
102+
script = staticmethod(partial(run, 'pkgdev'))
103103

104104
@pytest.fixture(autouse=True)
105105
def _setup(self, make_repo, make_git_repo):

tests/scripts/test_pkgdev_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_scan_args(self, repo, make_git_repo, tool):
6060

6161
class TestPkgdevPush:
6262

63-
script = partial(run, 'pkgdev')
63+
script = staticmethod(partial(run, 'pkgdev'))
6464

6565
@pytest.fixture(autouse=True)
6666
def _setup(self, tmp_path, make_repo, make_git_repo):

tests/scripts/test_pkgdev_showkw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_unknown_arches(self, capsys, tool, make_repo):
3434

3535
class TestPkgdevShowkw:
3636

37-
script = partial(run, 'pkgdev')
37+
script = staticmethod(partial(run, 'pkgdev'))
3838
base_args = ['pkgdev', 'showkw', '--config', 'n']
3939

4040
def _create_repo(self, make_repo):

0 commit comments

Comments
 (0)