Skip to content

Commit 1ab609b

Browse files
committed
[FIX] base_rest: restoring the component_database provoked fails with other modules
1 parent a4b00be commit 1ab609b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

base_rest/tests/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def _setup_registry(class_or_instance):
7070
db_name = get_db_name()
7171

7272
# makes the test component registry available for the db name
73+
class_or_instance._original_component_databases = _component_databases.get(
74+
db_name
75+
)
7376
_component_databases[db_name] = class_or_instance.comp_registry
7477

7578
# makes the test service registry available for the db name
@@ -145,7 +148,7 @@ def _teardown_registry(class_or_instance):
145148
class_or_instance._controller_children_classes
146149
)
147150
db_name = get_db_name()
148-
_component_databases[db_name] = class_or_instance._original_components
151+
_component_databases[db_name] = class_or_instance._original_component_databases
149152
_rest_services_databases[
150153
db_name
151154
] = class_or_instance._original_services_registry

0 commit comments

Comments
 (0)