mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
using the following command: ``` autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 . ```
17 lines
703 B
Python
17 lines
703 B
Python
from base import api
|
|
from base.populators import DatasetPopulator
|
|
|
|
|
|
class TestProvenance(api.ApiTestCase):
|
|
|
|
def setUp(self):
|
|
super(TestProvenance, self).setUp()
|
|
self.dataset_populator = DatasetPopulator(self.galaxy_interactor)
|
|
|
|
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")
|