diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-25 02:59:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-25 02:59:48 +0000 |
commit | ec14b3742103754d9022782587d0b5cf2f9fd1e3 (patch) | |
tree | b3496f24575e063a780a133dfc86eca7a51fb290 /tests/test_packager_provided_files.py | |
parent | Releasing progress-linux version 0.1.28-0.0~progress7.99u1. (diff) | |
download | debputy-ec14b3742103754d9022782587d0b5cf2f9fd1e3.tar.xz debputy-ec14b3742103754d9022782587d0b5cf2f9fd1e3.zip |
Merging upstream version 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.py | 12 |
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( |