Skip to content

Commit

Permalink
adding API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Mar 30, 2023
1 parent 70cdd19 commit 7c1801b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions music_publisher/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,7 @@ def test_bad_data_import(self):
self.assertEqual(response.status_code, 200)
self.assertIn(b"errornote", response.content)

@override_settings(OPTION_FILES=False)
def test_recording_filters(self):
"""Test Work changelist filters."""

Expand All @@ -1639,6 +1640,12 @@ def test_recording_filters(self):
url = base_url + "?has_isrc=N"
response = self.client.get(url, follow=False)
self.assertEqual(response.status_code, 200)
url = base_url + "?has_audio_file=Y"
response = self.client.get(url, follow=False)
self.assertEqual(response.status_code, 200)
url = base_url + "?has_audio_file=N"
response = self.client.get(url, follow=False)
self.assertEqual(response.status_code, 200)

def test_search(self):
"""Test Work search."""
Expand Down

0 comments on commit 7c1801b

Please sign in to comment.