Commit Graph
13 Commits
Author SHA1 Message Date
John Chilton aeac8c6060 Restore test framework features... 2022-11-26 11:28:36 -05:00
Nicola Soranzo 3a8997ccf2 Replace `unittest.TestCase` in API, framework, performance, Selenium and ToolShed tests
In API tests, replace no more working `uses_test_history` decorator (because
the `history_id` method parameter is interpreted as a fixture) with a real
class-level pytest fixture.
As a consequence, replace use of `self.history_id` in API tests because it
interferes with the class-level `history_id` fixture.

Also:
- Some type annotations
2022-11-07 15:44:01 +00:00
Nicola Soranzo 7f55e10cd2 Remove now redundant base class 2022-09-21 01:18:56 +01:00
mvdbeek c14d6164e9 Enable celery in API, Selenium, Integration tests 2022-05-25 19:46:47 +02:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
Michael R. Crusoe 7819fdc7a6 tighten type ignores 2021-11-23 13:12:07 +01:00
John Chilton fa2d2092f8 Type fixes: galaxy_test.api.test_tools. 2021-10-11 16:32:29 -04:00
John Chilton 8484f40f31 mypy for test/ 2020-12-25 17:38:51 -05:00
Nicola Soranzo 9d74bba7fb Drop support for retired Python 3.5
Upgrade syntax using `pyupgrade --py36-plus` .

Manually drop several `six` imports.

Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
2020-10-07 11:52:13 +01:00
Matthias Bernt b2c23e2392 fix rebasing errors
ApiTestCase has been moved and I missed the additional base class
which is necessary for resolving the MRO
2020-09-09 18:20:02 +02:00
John Chilton 2c2ed3f288 Decouple API and Selenium tests from galaxy-test-driver (and the whole app!)
I've been refactoring toward this for at least half a decade. Being able to pip install the API and Selenium tests without bringing in the whole app is important to make them usable outside the context of the app - for testing remote, running servers for instance.

If galaxy-test-driver is available the test cases will still spawn a Galaxy instance if needed, but this is not longer required for import or use.
2020-07-06 13:57:48 -04:00
John ChiltonandMarius van den Beek 97c0574898 Update lib/galaxy_test/api/_framework.py
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
2019-11-12 11:24:23 -05:00
John Chilton d04c020747 Migrate api tests into lib/galaxy_test for packaging. 2019-11-12 09:05:08 -05:00