Commit Graph
7 Commits
Author SHA1 Message Date
Nicola Soranzo aa49793ecf Make CompressedFile a context manager
to ensure that the archive is closed.
2025-01-18 14:40:30 +00:00
Nicola Soranzo c35d8f2a06 Replace `unittest.TestCase` with pytest-based partial re-implementation
Also:
- Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected
  by pytest only because they were `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
2022-09-27 03:34:58 +01:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton 8f9034a414 Typing fixes for various unit tests. 2021-10-05 13:22:41 -04:00
Nicola Soranzo 20a4bcd519 Use assertRaisesRegex() to fix new B017 linting errors
Fix the following errors reported by flake8-bugbear 21.4.3:

B017 assertRaises(Exception): should be considered evil. It can lead to
your test passing even if the code being tested is never executed due to a
typo. Either assert for a more specific exception (builtin or custom), use
assertRaisesRegex, or use the context manager form of assertRaises.
2021-04-03 20:09:02 +01: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
John Chilton f529da1b30 Organize more unit tests into package tested bundles. 2020-07-06 18:49:04 -04:00