Skip to content

Commit

Permalink
Adapt even more API tests around history contents to use JSON payload
Browse files Browse the repository at this point in the history
See galaxyproject#12152 for details
  • Loading branch information
davelopez committed Oct 19, 2021
1 parent d07a338 commit bcfa30c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/tool_util/verify/interactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,11 @@ def run_tool(self, testdef, history_id, resource_parameters=None):
def _create_collection(self, history_id, collection_def):
create_payload = dict(
name=collection_def.name,
element_identifiers=dumps(self._element_identifiers(collection_def)),
element_identifiers=self._element_identifiers(collection_def),
collection_type=collection_def.collection_type,
history_id=history_id,
)
return self._post("dataset_collections", data=create_payload).json()["id"]
return self._post("dataset_collections", data=create_payload, json=True).json()["id"]

def _element_identifiers(self, collection_def):
element_identifiers = []
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy_test/selenium/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def __init__(self, selenium_context: GalaxySeleniumContext):
self.dataset_populator = SeleniumSessionDatasetPopulator(selenium_context)

def _create_collection(self, payload: dict) -> Response:
create_response = self._post("dataset_collections", data=payload)
create_response = self._post("dataset_collections", data=payload, json=True)
return create_response


Expand Down

0 comments on commit bcfa30c

Please sign in to comment.