Commit Graph
6 Commits
Author SHA1 Message Date
John Chilton 018d066e36 Useful test decorators and runtime support for annotating how tests will be used. 2022-11-26 11:28:36 -05:00
Nicola Soranzo 0391cd4b62 Rename FooBarTestCase test classes as TestFooBar in API, framework, performance, Selenium and ToolShed tests
These are collected by pytest only because they are `unittest.TestCase` derived,
but normally pytest collects only test classes whose name starts with `Test`, see
https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes

Also:
- Some type annotations
2022-10-15 17:54:31 +01:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
davelopez 6ceb9d79da Fix run_as to be passed in the headers
The legacy API framework allowed to pass the `run_as` user in the payload but, moving forward to the new framework, looks like the headers is a better place for it (see https://github.com/galaxyproject/galaxy/pull/11342/commits/91e7d5191d70f3b286fdf86b39af657bede35f09).

- Adapt existing framework tests to pass in the `run_as` user in the headers instead of the payload.
- Fix the legacy framework not retrieving the `run_as` from the headers when the payload was not in JSON (i.e. Form data)
- Add a bit more of documentation for the OpenAPI schema.
2021-09-21 10:46:48 +02:00
John Chilton cb9c9afe98 sync webframeworks on x-frame-options 2021-01-27 01:14:17 -05:00
John Chilton d04c020747 Migrate api tests into lib/galaxy_test for packaging. 2019-11-12 09:05:08 -05:00