aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-09 14:10:39 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-09 14:13:37 +0300
commit70f58af433d05c157d2d3532839371b6307c94a3 (patch)
treed460bda861b5221c5c8ecb59cad8ec33cbe4b695 /tests
parentrequirements: bump pkgcore/snakeoil deps for py3.11 (diff)
downloadpkgdev-70f58af433d05c157d2d3532839371b6307c94a3.tar.gz
pkgdev-70f58af433d05c157d2d3532839371b6307c94a3.tar.bz2
pkgdev-70f58af433d05c157d2d3532839371b6307c94a3.zip
tests: use staticmethod to decrease warnings
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev.py2
-rw-r--r--tests/scripts/test_pkgdev_commit.py2
-rw-r--r--tests/scripts/test_pkgdev_manifest.py2
-rw-r--r--tests/scripts/test_pkgdev_mask.py2
-rw-r--r--tests/scripts/test_pkgdev_push.py2
-rw-r--r--tests/scripts/test_pkgdev_showkw.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/scripts/test_pkgdev.py b/tests/scripts/test_pkgdev.py
index e161498..8155bdc 100644
--- a/tests/scripts/test_pkgdev.py
+++ b/tests/scripts/test_pkgdev.py
@@ -42,7 +42,7 @@ def test_script_run(capsys):
class TestPkgdev:
- script = partial(run, project)
+ script = staticmethod(partial(run, project))
def test_version(self, capsys):
with patch('sys.argv', [project, '--version']):
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py
index df7c5f3..26e0bde 100644
--- a/tests/scripts/test_pkgdev_commit.py
+++ b/tests/scripts/test_pkgdev_commit.py
@@ -168,7 +168,7 @@ class TestPkgdevCommitParseArgs:
class TestPkgdevCommit:
- script = partial(run, 'pkgdev')
+ script = staticmethod(partial(run, 'pkgdev'))
@pytest.fixture(autouse=True)
def _setup(self, tmp_path):
diff --git a/tests/scripts/test_pkgdev_manifest.py b/tests/scripts/test_pkgdev_manifest.py
index 5787770..0c1c8c8 100644
--- a/tests/scripts/test_pkgdev_manifest.py
+++ b/tests/scripts/test_pkgdev_manifest.py
@@ -135,7 +135,7 @@ class TestPkgdevManifestParseArgs:
class TestPkgdevManifest:
- script = partial(run, 'pkgdev')
+ script = staticmethod(partial(run, 'pkgdev'))
@pytest.fixture(autouse=True)
def _setup(self):
diff --git a/tests/scripts/test_pkgdev_mask.py b/tests/scripts/test_pkgdev_mask.py
index fa6342b..29a2764 100644
--- a/tests/scripts/test_pkgdev_mask.py
+++ b/tests/scripts/test_pkgdev_mask.py
@@ -99,7 +99,7 @@ class TestPkgdevMaskParseArgs:
class TestPkgdevMask:
- script = partial(run, 'pkgdev')
+ script = staticmethod(partial(run, 'pkgdev'))
@pytest.fixture(autouse=True)
def _setup(self, make_repo, make_git_repo):
diff --git a/tests/scripts/test_pkgdev_push.py b/tests/scripts/test_pkgdev_push.py
index 4eeee4b..bf4fe97 100644
--- a/tests/scripts/test_pkgdev_push.py
+++ b/tests/scripts/test_pkgdev_push.py
@@ -60,7 +60,7 @@ class TestPkgdevPushParseArgs:
class TestPkgdevPush:
- script = partial(run, 'pkgdev')
+ script = staticmethod(partial(run, 'pkgdev'))
@pytest.fixture(autouse=True)
def _setup(self, tmp_path, make_repo, make_git_repo):
diff --git a/tests/scripts/test_pkgdev_showkw.py b/tests/scripts/test_pkgdev_showkw.py
index 51348f2..ea64be1 100644
--- a/tests/scripts/test_pkgdev_showkw.py
+++ b/tests/scripts/test_pkgdev_showkw.py
@@ -34,7 +34,7 @@ class TestPkgdevShowkwParseArgs:
class TestPkgdevShowkw:
- script = partial(run, 'pkgdev')
+ script = staticmethod(partial(run, 'pkgdev'))
base_args = ['pkgdev', 'showkw', '--config', 'n']
def _create_repo(self, make_repo):