Skip to content

Commit

Permalink
Test case for 1174
Browse files Browse the repository at this point in the history
test case for case and space insensitive unwind consolidation
  • Loading branch information
MariusWirtz committed Dec 4, 2024
1 parent 6c47be6 commit 90be242
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Tests/HierarchyService_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,22 @@ def test_remove_edges_under_consolidation(self):
'Total Years')
self.assertEqual(len(members), 0)

def test_remove_edges_under_consolidation_case_and_space_insensitive(self):
members = self.tm1.dimensions.hierarchies.elements.get_members_under_consolidation(
self.dimension_name,
self.dimension_name,
'Total Years')
self.assertGreater(len(members), 0)
self.tm1.dimensions.hierarchies.remove_edges_under_consolidation(
self.dimension_name,
self.dimension_name,
'TOTALYEARS')
members = self.tm1.dimensions.hierarchies.elements.get_members_under_consolidation(
self.dimension_name,
self.dimension_name,
'Total Years')
self.assertEqual(len(members), 0)

def test_add_edges(self):
edges = {("Total Years", "My Element"): 1, ("Total Years", "No Year"): 1}
self.tm1.dimensions.hierarchies.add_edges(self.dimension_name, self.dimension_name, edges)
Expand Down

0 comments on commit 90be242

Please sign in to comment.