summaryrefslogtreecommitdiff
path: root/testenv/tests
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-07-08 16:52:51 +0300
committerDevaev Maxim <[email protected]>2021-07-08 16:52:51 +0300
commit7c68b6b406b1ab864b832be814458a93717ce908 (patch)
treedd9ea3b93a76fdae365b88afa746754d95fe2d16 /testenv/tests
parent43aa435b81980ff5bc7a4b6ccacebde9d4ee2167 (diff)
lint fixes
Diffstat (limited to 'testenv/tests')
-rw-r--r--testenv/tests/apps/cleanup/test_main.py4
-rw-r--r--testenv/tests/apps/htpasswd/test_main.py2
2 files changed, 3 insertions, 3 deletions
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)