summaryrefslogtreecommitdiffstats
path: root/tests/test_packager_provided_files.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:47 +0000
commit03a1bd448be99d872d663a57a1cf4492882e090d (patch)
treec3d23691aa4dfdba89856bde05707a9a8e16abab /tests/test_packager_provided_files.py
parentAdding upstream version 0.1.28. (diff)
downloaddebputy-03a1bd448be99d872d663a57a1cf4492882e090d.tar.xz
debputy-03a1bd448be99d872d663a57a1cf4492882e090d.zip
Adding upstream version 0.1.29.upstream/0.1.29
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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(