summaryrefslogtreecommitdiffstats
path: root/tests/test_packager_provided_files.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_packager_provided_files.py')
-rw-r--r--tests/test_packager_provided_files.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_packager_provided_files.py b/tests/test_packager_provided_files.py
index 149564d..b0e075f 100644
--- a/tests/test_packager_provided_files.py
+++ b/tests/test_packager_provided_files.py
@@ -1,5 +1,5 @@
import random
-from typing import cast
+from typing import cast, TYPE_CHECKING
import pytest
@@ -10,9 +10,17 @@ from debputy.plugin.api.test_api import (
InitializedPluginUnderTest,
build_virtual_file_system,
)
-from debputy.plugin.api.test_api.test_impl import initialize_plugin_under_test_preloaded
+from debputy.plugin.api.test_api.test_impl import (
+ initialize_plugin_under_test_preloaded,
+)
from tutil import faked_binary_package, binary_package_table
+if TYPE_CHECKING:
+ from debputy.plugin.api.test_api.test_impl import InitializedPluginUnderTestImpl
+
+ # Irrelevant, but makes the import not "unused" for things that does not parse `cast("...", ...)` expressions
+ assert InitializedPluginUnderTestImpl is not None
+
def ppf_test_plugin(api: DebputyPluginInitializer) -> None:
api.packager_provided_file(