Skip to content

Commit

Permalink
Force PUT request headers to JSON in API test
Browse files Browse the repository at this point in the history
Aparentely FastAPI no longer assumes JSON by default.
  • Loading branch information
davelopez committed Jun 14, 2021
1 parent 299a216 commit 1c2ef1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy_test/api/test_datasets.py
Expand Up @@ -128,7 +128,7 @@ def test_tag_change(self):
'item_class': 'HistoryDatasetAssociation',
'item_tags': ['cool:tag_a', 'cool:tag_b', 'tag_c', 'name:tag_d', '#tag_e'],
})
put_response = self._put("tags", payload)
put_response = self._put("tags", data=payload, headers={'Content-Type': 'application/json'})
self._assert_status_code_is_ok(put_response)
updated_hda = self._get(
f"histories/{self.history_id}/contents/{hda_id}").json()
Expand Down

0 comments on commit 1c2ef1c

Please sign in to comment.