Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
test_index_advanced_filter
API test re-running
At the end of this test one history is made public. So, when re-running the API tests locally without wiping the database, the public history was also included in the results from the searches, causing the following error: ``` name_contains = "history" query = f"?search={name_contains}" index_response = self._get(f"histories{query}").json() > assert len(index_response) == 3 E AssertionError: assert 4 == 3 E + where 4 = len([{'annotation': None, 'archived': False, 'contents_url': '/api/histories/3393d74dbae390cc/contents', 'count': 0, ...}, {'annotation': None, 'archived': False, 'contents_url': '/api/histories/8cf91205f2f737f4/contents', 'count': 0, ...}, {'annotation': None, 'archived': False, 'contents_url': '/api/histories/b5065b03be4c41dc/contents', 'count': 0, ...}, {'annotation': None, 'archived': False, 'contents_url': '/api/histories/d9abeb98649a6a7e/contents', 'count': 0, ...}]) lib/galaxy_test/api/test_histories.py:194: AssertionError ``` Similarly, in the last part of the test the number of published histories was growing at each re-run. Also removed a redundant test.
- Loading branch information