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 |
|