Commit Graph
8 Commits
Author SHA1 Message Date
John Davis dee88049f5 Remove transaction helper from test.unit.app.tools
Note: app.model.context.current == app.model.context. The `current` attr
may have been a very legacy attribute still silently supported.
2025-01-23 11:39:24 -05:00
John Davis 86a33e011d Wrap session.flush in test.unit.app.tools 2023-06-09 13:05:26 -04:00
mvdbeek 437981894d Drop broken output.parent logic
⚠ I don't know what this was used for, but none of the dataset-like
models have a children list (was probably a relationship at one point).
We have no coverage at this point:
https://app.codecov.io/github/galaxyproject/galaxy/blob/dev/lib/galaxy/tools/actions/__init__.py
and if you add type hints to `out_data` this breaks because there's no
children attribute on DatasetInstance.
2022-10-26 17:37:16 +02: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
Nicola Soranzo b5c7e2c86a Replace `self.assert* method calls with plain asserts in test/`
using https://github.com/pytest-dev/unittest2pytest with the following command:

```
unittest2pytest -f self_assert -w -n test/
```

(excluding ``self.assertRaises*`` method calls).
2022-09-21 23:50:05 +01:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton 7006e2a7e5 More unit test fixes. 2021-10-08 11:04:00 -04:00
John Chilton fe0c4ab4e2 Migrate more unit tests into galaxy-app's test suite. 2021-10-07 11:05:03 -04:00