Skip to content

Commit

Permalink
fix(tests): adjust test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
psyray committed Sep 10, 2024
1 parent ce67d3c commit 5e47026
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion web/api/tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_add_recon_note_missing_data(self):
api_url = reverse("api:addReconNote")
data = {"title": "Test Note", "slug": "test-project"}
response = self.client.post(api_url, data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertFalse(response.data["status"])

class TestListTodoNotes(BaseTestCase):
Expand Down
2 changes: 0 additions & 2 deletions web/recon_note/tests/test_recon_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ def test_list_recon_notes(self):
api_url = reverse("list_note", kwargs={'slug': self.data_generator.project.slug})
response = self.client.get(api_url, {"project": self.data_generator.project.slug})
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertIn("recon_notes", response.json())
self.assertGreaterEqual(len(response.json()["recon_notes"]), 1)

def test_delete_recon_note_success(self):
"""Test deleting a recon note successfully."""
Expand Down

0 comments on commit 5e47026

Please sign in to comment.