Skip to content

Commit 10c234e

Browse files
committed
Prevent test failures with namespace packages
1 parent ce819f7 commit 10c234e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/unit_tests/code_examples/deferred_plans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .plan_docstrings import temp_pressure_snapshot
1+
from tests.unit_tests.code_examples.plan_docstrings import temp_pressure_snapshot
22

33
# Imported by instances of blueapi and allowed to be run
44
__all__ = [

tests/unit_tests/core/test_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,10 @@ class InnerClass: ...
627627
(list[GenericClass], "list"),
628628
(list[int], "list"),
629629
(dict[str, int], "dict"),
630-
(CustomClass, "core.test_context.CustomClass"),
630+
(CustomClass, "tests.unit_tests.core.test_context.CustomClass"),
631631
(T, "Any"),
632-
(GenericClass, "core.test_context.GenericClass"),
633-
(OuterClass.InnerClass, "core.test_context.OuterClass.InnerClass"),
632+
(GenericClass, "tests.unit_tests.core.test_context.GenericClass"),
633+
(OuterClass.InnerClass, "tests.unit_tests.core.test_context.OuterClass.InnerClass"),
634634
]
635635

636636

tests/unit_tests/test_example_code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
@pytest.mark.parametrize(
1212
"module_name,plan_names",
1313
[
14-
("plan_module", ["my_plan"]),
15-
("plan_docstrings", ["temp_pressure_snapshot"]),
16-
("plan_metadata", ["pass_metadata"]),
17-
("deferred_plans", ["temp_pressure_snapshot"]),
14+
("tests.unit_tests.code_examples.plan_module", ["my_plan"]),
15+
("tests.unit_tests.code_examples.plan_docstrings", ["temp_pressure_snapshot"]),
16+
("tests.unit_tests.code_examples.plan_metadata", ["pass_metadata"]),
17+
("tests.unit_tests.code_examples.deferred_plans", ["temp_pressure_snapshot"]),
1818
],
1919
)
2020
def test_example_plan_module_is_detectable(module_name: str, plan_names: list[str]):

0 commit comments

Comments
 (0)