Skip to content

Commit

Permalink
reverse method from test_contentnode_tree_none_pk
Browse files Browse the repository at this point in the history
  • Loading branch information
manzil-infinity180 committed Nov 19, 2024
1 parent a6cbeeb commit 0f4d4c4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions kolibri/core/content/test/test_content_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,8 @@ def test_contentnode_tree_filtered_queryset_node(self):
self.assertEqual(response.status_code, 404)

def test_contentnode_tree_none_pk(self):
response = self.client.get(
reverse(
"kolibri:core:contentnode_tree-detail",
kwargs={"pk": None},
)
)
self.assertEqual(response.status_code, 400)
response = self.client.get("/api/content/contentnode_tree/")
self.assertEqual(response.status_code, 404)

def test_contentnode_tree_bad_pk(self):
response = self.client.get(
Expand Down

0 comments on commit 0f4d4c4

Please sign in to comment.