Skip to content

Commit

Permalink
Remove unnecessary test #308
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Jul 24, 2024
1 parent 2ceed14 commit 084c838
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/unit/services/test_catalogue_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,23 +281,6 @@ def test_create_with_properties(self):
self.call_create()
self.check_create_success()

def test_create_with_duplicate_properties(self):
"""Test creating a catalogue category with properties"""

self.mock_create(
{
**CATALOGUE_CATEGORY_POST_DATA_NON_LEAF_NO_PARENT_NO_PROPERTIES_A,
"properties": [
CATALOGUE_CATEGORY_PROPERTY_DATA_BOOLEAN_MANDATORY_WITHOUT_UNIT,
CATALOGUE_CATEGORY_PROPERTY_DATA_BOOLEAN_MANDATORY_WITHOUT_UNIT,
],
},
)
self.call_create_expecting_error(DuplicateCatalogueCategoryPropertyNameError)
self.check_create_failed_with_exception(
f"Duplicate property name: {CATALOGUE_CATEGORY_PROPERTY_DATA_BOOLEAN_MANDATORY_WITHOUT_UNIT['name']}"
)

def test_create_with_properties_with_non_existent_unit_id(self):
"""Test creating a catalogue category with properties with a non-existent unit id"""

Expand Down

0 comments on commit 084c838

Please sign in to comment.