mvdbeek
5684562f37
Send reload message after data bundle import is complete
2023-09-03 18:24:28 +02:00
Nicola Soranzo
30f60493c3
Format Python code with black 23.1.0
...
with manual fixes to 3 files to make them compatible with black 22.12.0 .
We need to keep black pinned at `<23` until we vendorise `packaging`, since
the new version of black depends on `packaging >=22.0` which is the version
where `LegacyVersion` (which we use for tool lineages) was removed.
2023-02-01 23:51:03 +00:00
John Chilton
5c04e71a58
Data manager bundles.
2022-12-20 10:35:17 -05: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
mvdbeek
28d58edbcc
Use celery in more integration tests
2022-05-26 12:48:44 +02:00
Dannon Baker
623a5e165a
Apply black formatting.
...
Apply isort.
2022-02-03 07:42:20 -05:00
Nicola Soranzo
90a729e431
New pyupgrade fixes
...
Found by running `ack --type=python -f | grep -v '^tools/' | xargs pyupgrade --py36-plus`
2021-10-24 12:10:34 +01:00
davelopez
f5c5f6390a
Replace content-type hack in tests with the json=True parameter
2021-06-18 17:43:39 +02:00
davelopez
6c4314a8db
Force PUT request headers to JSON in API test
...
Aparentely FastAPI no longer assumes JSON by default.
2021-06-15 11:14:00 +02:00
davelopez
c11eca20d6
Move test_delete_entry to integration tests
2021-01-20 13:21:57 +01:00