Nicola Soranzo
7ce76af796
Format code with black 25.1.0
2025-02-16 18:07:51 +00:00
Nicola Soranzo
e975ca3754
Update to black 2024 stable style
2024-01-30 18:09:51 +00:00
davelopez
5b9c5c53fb
Fix user session in manager unit tests
...
Most unit tests were creating histories with user ID=2 while adding datasets and collections to those histories using the default `trans.user` which was user ID=1 (admin).
This resulted in `ItemOwnershipException: User does not own item.` which I think makes sense.
2023-07-31 14:03:32 +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
f3b04b8f26
Remove `unittest.main()` calls
2022-09-21 23:50:05 +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
fe0c4ab4e2
Migrate more unit tests into galaxy-app's test suite.
2021-10-07 11:05:03 -04:00