Skip to content

Commit

Permalink
Ensure repo tests of duplicate_name use the same name in the data #305
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Jun 27, 2024
1 parent 222d588 commit e9491a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/repositories/test_catalogue_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_create_with_duplicate_name_within_parent(self):
self.mock_create(
{**CATALOGUE_CATEGORY_IN_DATA_NON_LEAF_NO_PARENT_A, "parent_id": str(ObjectId())},
parent_catalogue_category_in_data=CATALOGUE_CATEGORY_IN_DATA_NON_LEAF_NO_PARENT_B,
duplicate_catalogue_category_in_data=CATALOGUE_CATEGORY_IN_DATA_NON_LEAF_NO_PARENT_B,
duplicate_catalogue_category_in_data=CATALOGUE_CATEGORY_IN_DATA_NON_LEAF_NO_PARENT_A,
)
self.call_create_expecting_error(DuplicateRecordError)
self.check_create_failed_with_exception(
Expand Down
2 changes: 1 addition & 1 deletion test/unit/repositories/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def test_create_with_duplicate_name_within_parent(self):
self.mock_create(
{**SYSTEM_IN_DATA_NO_PARENT_A, "parent_id": str(ObjectId())},
parent_system_in_data=SYSTEM_IN_DATA_NO_PARENT_B,
duplicate_system_in_data=SYSTEM_IN_DATA_NO_PARENT_B,
duplicate_system_in_data=SYSTEM_IN_DATA_NO_PARENT_A,
)
self.call_create_expecting_error(DuplicateRecordError)
self.check_create_failed_with_exception("Duplicate system found within the parent system")
Expand Down

0 comments on commit e9491a0

Please sign in to comment.