Commit Graph
17 Commits
Author SHA1 Message Date
John Chilton e592070420 Test decorator improvements.
- Add some basic typing to them.
- Include more information in assertion errors thrown when they target an incorrectly configured server.
- Allow for explicit anonymous interactor creation so we can cleanly apply these decorators to Selenium tests (Selenium test interactors use API keys that can be created from the UI - so they don't have complete user information available upfront).
- Add decorator skip_without_visualization_plugin.
- Add some decorators to the visualization tests and implement a second test.
- Use managed_history decorator to ensure existing test has an hid of 1 as assumed.
2023-06-18 12:34:21 -04:00
John Chilton 478583486e Improved error message in api_asserts. 2023-02-21 14:18:57 -05:00
Nicola Soranzo 7902601d21 Replace 2 doctests with unit tests 2022-06-08 10:17:50 +01:00
Nicola Soranzo 385b665ce2 Transform pseudo-code in doc test 2022-05-30 22:41:37 +01:00
mvdbeek 02ac5b3c9e Add FastAPI route for tools/fetch 2022-04-23 12:01:32 +02:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton 0133597308 Typing fixes for integration tests around galaxy.files stuff. 2021-10-11 16:32:30 -04:00
Nicola Soranzo d26b3d9848 Fix all E203, E741 and W504 flake8 errors 2021-01-18 10:35:41 +00:00
John Chilton 61188ca27b Hook requests up to intersphinx. 2021-01-12 09:29:53 -05:00
John Chilton 08110e2281 Better docs & typing for lib/galaxy_test/base/api_asserts.py. 2021-01-12 09:29:53 -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
Dannon Baker 0a424a15a4 Merge remote-tracking branch 'upstream/dev' into py3-compat-drop 2020-07-29 09:05:58 -04:00
Dannon Baker 3de5d7ac5d Merge remote-tracking branch 'upstream/dev' into py3-compat-drop 2020-07-20 11:40:25 -04:00
John Chilton 04c815b7e1 Integration tests for remote_files API endpoint. 2020-07-14 10:09:49 -04:00
John Chilton ad87c011c9 Eliminate self.security from API tests (breaks abstractions). 2020-07-02 17:00:03 -04:00
Dannon Baker 9ebf5f36d1 Update string formatting in rest of lib 2020-06-26 08:24:02 -04:00
John Chilton 45019c3fbd Move galaxy testing utilities into more sane package structure.
Split test/base into lib/galaxy_test/base and lib/galaxy_test/driver. Dividing things on whether they import galaxy-app code or not - with the goal of a galaxy-test-base package that doesn't depend on galaxy-app and a galaxy-test-driver package that does.

I've been refactoring around this division for a long time. Certain tests (namely the integration tests) always need to bootstrap Galaxy - but the API tests and the Selenium tests should be installable and runnable without Galaxy in the Python environment. So future galaxy-test-api and galaxy-test-selenium packages should have only an optional dependency on galaxy-test-driver.

Properly sturcturing these namespaces is a precursor for real packages on PyPI, clean separation of the tool shed testing code, and cleans up all the flake8 noqa hacks in test/.
2019-11-12 09:03:06 -05:00