Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy_test.api.test_history_contents_provenance

from galaxy_test.base.populators import DatasetPopulator
from ._framework import ApiTestCase


[docs]class TestProvenance(ApiTestCase):
[docs] def setUp(self): super(TestProvenance, self).setUp() self.dataset_populator = DatasetPopulator(self.galaxy_interactor)
[docs] def test_show_prov(self): history_id = self.dataset_populator.new_history() new_dataset1 = self.dataset_populator.new_dataset(history_id, content='for prov') prov_response = self._get("histories/%s/contents/%s/provenance" % (history_id, new_dataset1["id"])) self._assert_status_code_is(prov_response, 200) self._assert_has_keys(prov_response.json(), "job_id", "id", "stdout", "stderr", "parameters", "tool_id")