Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisoSouza committed Dec 13, 2024
1 parent 578ae32 commit f09a9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nexus/logs/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ def test_get_tag_percentages_no_logs(self):
response = self.view(request, project_uuid=str(self.project.uuid))
response.render()

self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data['error'], "No logs found for the given date range")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data, [])

def test_get_tag_percentages_invalid_date(self):
request = self.factory.get(self.url, {'started_day': 'invalid-date', 'ended_day': self.ended_day})
Expand Down

0 comments on commit f09a9b7

Please sign in to comment.