summaryrefslogtreecommitdiffstats
path: root/tests/test_plugin_tester.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_plugin_tester.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_plugin_tester.py')
-rw-r--r--tests/test_plugin_tester.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_plugin_tester.py b/tests/test_plugin_tester.py
index 8078a02..b41f8a3 100644
--- a/tests/test_plugin_tester.py
+++ b/tests/test_plugin_tester.py
@@ -1,6 +1,6 @@
import json
import os.path
-from typing import List, Tuple, Type, cast
+from typing import List, Tuple, Type, cast, TYPE_CHECKING
import pytest
@@ -25,6 +25,13 @@ from debputy.plugin.api.test_api.test_impl import (
initialize_plugin_under_test_from_inline_json,
)
+if TYPE_CHECKING:
+ from debputy.plugin.api import PluginInitializationEntryPoint
+
+ # Irrelevant, but makes the import not "unused" for things that does not parse `cast("...", ...)` expressions
+ assert PluginInitializationEntryPoint is not None
+
+
CUSTOM_PLUGIN_JSON_FILE = os.path.join(
os.path.dirname(__file__), "data", "custom-plugin.json.in"
)