Skip to content

Commit

Permalink
Remove test for something that is tested in goflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Dec 20, 2024
1 parent 56850a7 commit 83f1541
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 108 deletions.
83 changes: 0 additions & 83 deletions media/test_flows/group_split_no_name.json

This file was deleted.

25 changes: 0 additions & 25 deletions temba/flows/tests/test_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,31 +299,6 @@ def test_clone(self):
copy2 = flow2.clone(self.admin)
self.assertEqual("Copy of abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabc", copy2.name)

def test_copy_group_split_no_name(self):
flow = self.get_flow("group_split_no_name")
flow_def = flow.get_definition()

copy = flow.clone(self.admin)
copy_def = copy.get_definition()

self.assertEqual(len(copy_def["nodes"]), 1)
self.assertEqual(len(copy_def["nodes"][0]["router"]["cases"]), 1)
self.assertEqual(
copy_def["nodes"][0]["router"]["cases"][0],
{
"uuid": matchers.UUID4String(),
"type": "has_group",
"arguments": [matchers.UUID4String()],
"category_uuid": matchers.UUID4String(),
},
)

# check that the original and the copy reference the same group
self.assertEqual(
flow_def["nodes"][0]["router"]["cases"][0]["arguments"],
copy_def["nodes"][0]["router"]["cases"][0]["arguments"],
)

def test_get_activity(self):
flow1 = self.create_flow("Test 1")
flow2 = self.create_flow("Test 2")
Expand Down

0 comments on commit 83f1541

Please sign in to comment.