Skip to content

Commit

Permalink
fix: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
anshg1214 committed Apr 26, 2024
1 parent 0692c4b commit 06fd48f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions listenbrainz/tests/integration/test_api_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def test_complete_workflow_json(self):

r = self.client.post(
self.custom_url_for('api_compat.api_auth_approve'),
data=data,
headers={'Content-Type': 'application/json'}
data=json.dumps(data),
content_type="application/json"
)
self.assert200(r)

Expand All @@ -94,8 +94,7 @@ def test_complete_workflow_json(self):
'duration[0]': 300,
'timestamp[0]': int(time.time()),
}
r = self.client.post(self.custom_url_for('api_compat.api_methods'), data=data,
headers={'Content-Type': 'application/json'})
r = self.client.post(self.custom_url_for('api_compat.api_methods'), data=data)
self.assert200(r)

expected = {
Expand Down

0 comments on commit 06fd48f

Please sign in to comment.