From 83f1541ed994397be0639b0caf4c79d066e596b5 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Fri, 20 Dec 2024 19:51:05 +0000 Subject: [PATCH] Remove test for something that is tested in goflow --- media/test_flows/group_split_no_name.json | 83 ----------------------- temba/flows/tests/test_flow.py | 25 ------- 2 files changed, 108 deletions(-) delete mode 100644 media/test_flows/group_split_no_name.json diff --git a/media/test_flows/group_split_no_name.json b/media/test_flows/group_split_no_name.json deleted file mode 100644 index af6d9783add..00000000000 --- a/media/test_flows/group_split_no_name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "version": "13", - "site": "https://app.rapidpro.io", - "flows": [ - { - "name": "Has Group Without Name", - "uuid": "74e9b272-5b32-4810-953b-20e0df385e56", - "spec_version": "13.0.0", - "language": "eng", - "type": "messaging", - "nodes": [ - { - "uuid": "2e930192-4e7c-4d67-aac6-d22f6f4c929e", - "actions": [], - "router": { - "type": "switch", - "cases": [ - { - "uuid": "1eeea626-ce71-4395-b6d4-ab01a754c775", - "type": "has_group", - "arguments": [ - "0eaacd64-e32f-45bb-9853-213209e24779" - ], - "category_uuid": "0fb2f8d9-46a5-4b20-8d63-c849d67a28a3" - } - ], - "categories": [ - { - "uuid": "0fb2f8d9-46a5-4b20-8d63-c849d67a28a3", - "name": "Approved", - "exit_uuid": "ae69f78e-8d03-4e9c-84f3-2e11c6694be6" - }, - { - "uuid": "c4fac67c-dead-4d06-9add-50a56537a1c5", - "name": "Other", - "exit_uuid": "85445d80-3ee2-4bdb-b0f0-0bc7b2499ad0" - } - ], - "default_category_uuid": "c4fac67c-dead-4d06-9add-50a56537a1c5", - "operand": "@contact.groups", - "result_name": "" - }, - "exits": [ - { - "uuid": "ae69f78e-8d03-4e9c-84f3-2e11c6694be6" - }, - { - "uuid": "85445d80-3ee2-4bdb-b0f0-0bc7b2499ad0" - } - ] - } - ], - "_ui": { - "nodes": { - "2e930192-4e7c-4d67-aac6-d22f6f4c929e": { - "type": "split_by_groups", - "position": { - "left": 0, - "top": 0 - }, - "config": { - "cases": {} - } - } - } - }, - "revision": 2, - "expire_after_minutes": 10080, - "version": "13.0.0", - "localization": {} - } - ], - "campaigns": [], - "triggers": [], - "fields": [], - "groups": [ - { - "uuid": "0eaacd64-e32f-45bb-9853-213209e24779", - "name": "Approved", - "query": null - } - ] -} \ No newline at end of file diff --git a/temba/flows/tests/test_flow.py b/temba/flows/tests/test_flow.py index 7b8555f4feb..d94d4b05f9d 100644 --- a/temba/flows/tests/test_flow.py +++ b/temba/flows/tests/test_flow.py @@ -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")