diff options
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/linters/pylint.ini | 1 | ||||
-rw-r--r-- | testenv/tests/apps/cleanup/test_main.py | 4 | ||||
-rw-r--r-- | testenv/tests/apps/htpasswd/test_main.py | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/testenv/linters/pylint.ini b/testenv/linters/pylint.ini index b2471ffe..f086a1b5 100644 --- a/testenv/linters/pylint.ini +++ b/testenv/linters/pylint.ini @@ -35,6 +35,7 @@ disable = raise-missing-from, consider-using-in, unsubscriptable-object, + unused-private-member, # https://github.com/PyCQA/pylint/issues/3882 [CLASSES] diff --git a/testenv/tests/apps/cleanup/test_main.py b/testenv/tests/apps/cleanup/test_main.py index 8458d03f..c1c829f0 100644 --- a/testenv/tests/apps/cleanup/test_main.py +++ b/testenv/tests/apps/cleanup/test_main.py @@ -37,9 +37,9 @@ def test_ok(tmpdir) -> None: # type: ignore queue: "multiprocessing.Queue[Literal[True]]" = multiprocessing.Queue() ustreamer_sock_path = os.path.abspath(str(tmpdir.join("ustreamer-fake.sock"))) - open(ustreamer_sock_path, "w").close() + open(ustreamer_sock_path, "w").close() # pylint: disable=consider-using-with kvmd_sock_path = os.path.abspath(str(tmpdir.join("kvmd-fake.sock"))) - open(kvmd_sock_path, "w").close() + open(kvmd_sock_path, "w").close() # pylint: disable=consider-using-with def ustreamer_fake() -> None: setproctitle.setproctitle("kvmd/streamer: /usr/bin/ustreamer") diff --git a/testenv/tests/apps/htpasswd/test_main.py b/testenv/tests/apps/htpasswd/test_main.py index 4b1ee66b..54f30047 100644 --- a/testenv/tests/apps/htpasswd/test_main.py +++ b/testenv/tests/apps/htpasswd/test_main.py @@ -164,7 +164,7 @@ def test_fail__unknown_plugin() -> None: def test_fail__invalid_passwd(mocker, tmpdir) -> None: # type: ignore path = os.path.abspath(str(tmpdir.join("htpasswd"))) - open(path, "w").close() + open(path, "w").close() # pylint: disable=consider-using-with mocker.patch.object(builtins, "input", (lambda: "\n")) with pytest.raises(SystemExit, match="The argument is not a valid passwd characters"): _run_htpasswd(["set", "admin", "--read-stdin"], path) |