Skip to content

Commit

Permalink
Failing test for history copying updating update_time.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Mar 14, 2024
1 parent 12a79da commit d914eb6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/galaxy_test/api/test_histories.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ def test_copy_history(self):
history_id, contents=["Hello", "World"], direct_upload=True
)
dataset_collection = self.dataset_collection_populator.wait_for_fetched_collection(fetch_response.json())
history = self._show(history_id)
assert "update_time" in history
original_update_time = history["update_time"]

copied_history_response = self.dataset_populator.copy_history(history_id)
copied_history_response.raise_for_status()
copied_history = copied_history_response.json()
Expand All @@ -366,6 +370,10 @@ def test_copy_history(self):
assert source_hda["history_id"] != copied_hda["history_id"]
assert source_hda["hid"] == copied_hda["hid"] == 2

history = self._show(history_id)
new_update_time = history["update_time"]
assert original_update_time == new_update_time

# TODO: (CE) test_create_from_copy
def test_import_from_model_store_dict(self):
response = self.dataset_populator.create_from_store(store_dict=history_model_store_dict())
Expand Down

0 comments on commit d914eb6

Please sign in to comment.