chrono/tests
Benjamin Dauvergne 3ea108a3fc misc: use hobo.multitenant.spooler (#76419)
Trying to import uwsgi should not be used to detect if we are running in
pytest or not, in order to run callbacks attached to on_commit event in
the context of pytest-django (which run all tests inside implicit
transactions).

Here we replace somme spooler functions by a simpler launch_to_spooler() which
can launch inside the spooler any picklable functions.

For running on_commit() callbacks, the django.db.transaction module is
mirrored inside chrono.utils.transaction and we monkeypatch it during
tests to immediately run any defined on_commit callback.
2023-04-11 11:42:24 +02:00
..
api api: fix datetimes for multiple agendas when no subscriptions & overlaps (#76217) 2023-04-04 16:14:53 +02:00
data agendas: add time period exception groups (#62801) 2022-03-31 15:02:19 +02:00
manager misc: notify bookings when event is marked as checked (#75896) 2023-04-03 16:41:07 +02:00
__init__.py misc: fix parse-error pylint error (#55505) 2021-07-15 15:02:15 +02:00
conftest.py misc: use hobo.multitenant.spooler (#76419) 2023-04-11 11:42:24 +02:00
metz.json add test on metz data (#42169) 2020-05-19 14:54:55 +02:00
settings.py misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 12:08:30 +02:00
test_agendas.py agendas: reimplement min/max_booking_datetime based on minimal_booking_time (#56284) 2023-03-28 10:26:12 +02:00
test_api_utils.py api: filter by subscriptions in multiple agendas datetimes (#58446) 2021-12-13 16:41:23 +01:00
test_ensure_jsonbfields.py misc: drop sqlite support - postgresql only (#56148) 2021-08-13 14:43:41 +02:00
test_import_export.py misc: use zoneinfo instead of pytz for timezones (#71918) 2023-03-14 17:06:59 +01:00
test_interval.py pylint: remove disabling of misplaced-comparison-constant (#59021) 2021-11-25 18:13:21 +01:00
test_metz.py misc: apply isort (#52856) 2021-04-16 10:32:59 +02:00
test_misc.py misc: use zoneinfo instead of pytz for timezones (#71918) 2023-03-14 17:06:59 +01:00
test_requests.py misc: bump black version (#75442) 2023-03-29 12:08:30 +02:00
test_sso.py misc: fix unused-import pylint error (#55505) 2021-07-15 14:58:49 +02:00
test_time_periods.py misc: use zoneinfo instead of pytz for timezones (#71918) 2023-03-14 17:06:59 +01:00
test_utils.py misc: retrieve check types from lingo (#66015) 2022-07-01 10:22:49 +02:00
test_wcs_templatetags.py pricing: publik-django-templatetags integration (#64561) 2022-05-17 11:14:57 +02:00
utils.py tests: move login helper outside manager tests (#60021) 2021-12-23 14:15:13 +01:00