Skip to content

Commit

Permalink
Redundant old tests remove - no longer needed as those URL functions …
Browse files Browse the repository at this point in the history
…have been removed
  • Loading branch information
Luke Clarke committed Aug 11, 2023
1 parent 43e27b7 commit 373c8fb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
12 changes: 6 additions & 6 deletions NearBeach/tests/test_object_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def test_incorrect_destination_data(self):
"bug_list",
"customer_list",
"customer_list_all",
"group_list",
"group_list_all",
# "group_list",
# "group_list_all",
"note_list",
"object_link_list",
"query_bug_client",
Expand All @@ -61,7 +61,7 @@ def test_incorrect_destination_data(self):
"remove_user",
"tag_list",
"user_list",
"user_list_all",
# "user_list_all",
]

# Loop through each url to test to make sure the decorator is applied
Expand Down Expand Up @@ -120,13 +120,13 @@ def test_correct_object_data__without_forms(self):
"bug_list",
"customer_list",
"customer_list_all",
"group_list",
"group_list_all",
# "group_list",
# "group_list_all",
"note_list",
"object_link_list",
"tag_list",
"user_list",
"user_list_all",
# "user_list_all",
]

# Loop through each url to test to make sure the decorator is applied
Expand Down
12 changes: 6 additions & 6 deletions NearBeach/tests/test_redirection_of_non_logged_in_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ def test_objects_get(self):
c.get(reverse("bug_list", args=["project", 1])),
c.get(reverse("customer_list", args=["project", 1])),
c.get(reverse("customer_list_all", args=["project", 1])),
c.get(reverse("group_list", args=["project", 1])),
c.get(reverse("group_list_all", args=["project", 1])),
# c.get(reverse("group_list", args=["project", 1])),
# c.get(reverse("group_list_all", args=["project", 1])),
c.get(reverse("link_list", args=["project", 1, "task"])),
c.get(reverse("note_list", args=["project", 1])),
c.get(reverse("object_link_list", args=["project", 1])),
c.get(reverse("query_bug_client", args=["project", 1])),
c.get(reverse("user_list", args=["project", 1])),
c.get(reverse("user_list_all", args=["project", 1])),
# c.get(reverse("user_list_all", args=["project", 1])),
c.get(reverse("lead_user_list")),
]

Expand All @@ -227,14 +227,14 @@ def test_objects_post(self):
c.post(reverse("bug_list", args=["project", 1])),
c.post(reverse("customer_list", args=["project", 1])),
c.post(reverse("customer_list_all", args=["project", 1])),
c.post(reverse("group_list", args=["project", 1])),
c.post(reverse("group_list_all", args=["project", 1])),
# c.post(reverse("group_list", args=["project", 1])),
# c.post(reverse("group_list_all", args=["project", 1])),
c.post(reverse("link_list", args=["project", 1, "task"])),
c.post(reverse("note_list", args=["project", 1])),
c.post(reverse("object_link_list", args=["project", 1])),
c.post(reverse("query_bug_client", args=["project", 1])),
c.post(reverse("user_list", args=["project", 1])),
c.post(reverse("user_list_all", args=["project", 1])),
# c.post(reverse("user_list_all", args=["project", 1])),
c.post(reverse("lead_user_list")),
]

Expand Down
7 changes: 4 additions & 3 deletions NearBeach/tests/tests_user_permissions/test_admin_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@ def test_basic_permissions_as_admin(self):
URLTest("bug_list", ["project", 1], {}, 200, "POST"),
URLTest("customer_list", ["project", 1], {}, 200, "POST"),
URLTest("customer_list_all", ["project", 1], {}, 200, "POST"),
URLTest("group_list", ["project", 1], {}, 200, "POST"),
URLTest("group_list_all", ["project", 1], {}, 200, "POST"),
# URLTest("group_list", ["project", 1], {}, 200, "POST"),
# URLTest("group_list_all", ["project", 1], {}, 200, "POST"),
URLTest("note_list", ["project", 1], {}, 200, "POST"),
URLTest("object_link_list", ["project", 1], {}, 200, "POST"),
URLTest("tag_list", ["project", 1], {}, 200, "POST"),
URLTest("user_list", ["project", 1], {}, 200, "POST"),
URLTest("user_list_all", ["project", 1], {}, 200, "POST"),
# URLTest("user_list_all", ["project", 1], {}, 200, "POST"),
URLTest("group_and_user_data", ["project", 1], {}, 200, "POST"),
]

# Loop through each url to test to make sure the decorator is applied
Expand Down

0 comments on commit 373c8fb

Please sign in to comment.