Skip to content

Commit

Permalink
Merge PR #497 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by lmignon
  • Loading branch information
OCA-git-bot committed Feb 18, 2025
2 parents a4b00be + 1ab609b commit 0de6ed1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base_rest/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def _setup_registry(class_or_instance):
db_name = get_db_name()

# makes the test component registry available for the db name
class_or_instance._original_component_databases = _component_databases.get(
db_name
)
_component_databases[db_name] = class_or_instance.comp_registry

# makes the test service registry available for the db name
Expand Down Expand Up @@ -145,7 +148,7 @@ def _teardown_registry(class_or_instance):
class_or_instance._controller_children_classes
)
db_name = get_db_name()
_component_databases[db_name] = class_or_instance._original_components
_component_databases[db_name] = class_or_instance._original_component_databases
_rest_services_databases[
db_name
] = class_or_instance._original_services_registry
Expand Down

0 comments on commit 0de6ed1

Please sign in to comment.