summaryrefslogtreecommitdiffstats
path: root/tests/plugin_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugin_tests')
-rw-r--r--tests/plugin_tests/__init__.py0
-rw-r--r--tests/plugin_tests/conftest.py3
-rw-r--r--tests/plugin_tests/numpy3_test.py3
-rw-r--r--tests/plugin_tests/perl-openssl_test.py3
4 files changed, 6 insertions, 3 deletions
diff --git a/tests/plugin_tests/__init__.py b/tests/plugin_tests/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/plugin_tests/__init__.py
diff --git a/tests/plugin_tests/conftest.py b/tests/plugin_tests/conftest.py
index f2a8aea..6b28755 100644
--- a/tests/plugin_tests/conftest.py
+++ b/tests/plugin_tests/conftest.py
@@ -1,10 +1,11 @@
import os
+from typing import Iterator
import pytest
@pytest.fixture(autouse=True)
-def workaround_debputys_own_test_suite() -> None:
+def workaround_debputys_own_test_suite() -> Iterator[None]:
# This fixture is only required as long as the tests are run inside `debputy`'s
# own test suite. If you copy out a plugin + tests, you should *not* need this
# fixture.
diff --git a/tests/plugin_tests/numpy3_test.py b/tests/plugin_tests/numpy3_test.py
index 9b252fb..62fbd77 100644
--- a/tests/plugin_tests/numpy3_test.py
+++ b/tests/plugin_tests/numpy3_test.py
@@ -1,4 +1,5 @@
import os
+from typing import Iterator
import pytest
@@ -12,7 +13,7 @@ DATA_FILE = os.path.join(os.path.dirname(__file__), "numpy3_test.data")
@pytest.fixture(scope="session")
-def numpy3_stub_data_file() -> None:
+def numpy3_stub_data_file() -> Iterator[None]:
os.environ["_NUMPY_TEST_PATH"] = DATA_FILE
yield
try:
diff --git a/tests/plugin_tests/perl-openssl_test.py b/tests/plugin_tests/perl-openssl_test.py
index 37f2ba1..27d680d 100644
--- a/tests/plugin_tests/perl-openssl_test.py
+++ b/tests/plugin_tests/perl-openssl_test.py
@@ -1,5 +1,6 @@
import stat
import os
+from typing import Iterator
import pytest
@@ -13,7 +14,7 @@ STUB_CMD = os.path.join(os.path.dirname(__file__), "perl-ssl_test.sh")
@pytest.fixture(scope="session")
-def perl_ssl_stub_cmd() -> None:
+def perl_ssl_stub_cmd() -> Iterator[None]:
os.environ["_PERL_SSL_DEFAULTS_TEST_PATH"] = STUB_CMD
mode = stat.S_IMODE(os.stat(STUB_CMD).st_mode)
if (mode & 0o500) != 0o500: