Bug #38737
Erreurs tests time period exception
Début:
02 janvier 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Jenkins :
> assert TimePeriodException.objects.filter(desk=desk).count() == 2 E AssertionError: assert 1 == 2 E + where 1 = <bound method QuerySet.count of <QuerySet [<TimePeriodException: New Year's Eve (01/01/2021 → 01/01/2021)>]>>() E + where <bound method QuerySet.count of <QuerySet [<TimePeriodException: New Year's Eve (01/01/2021 → 01/01/2021)>]>> = <QuerySet [<TimePeriodException: New Year's Eve (01/01/2021 → 01/01/2021)>]>.count E + where <QuerySet [<TimePeriodException: New Year's Eve (01/01/2021 → 01/01/2021)>]> = <bound method BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_method of <django.db.models.manager.Manager object at 0x7f3a1a1a1ac8>>(desk=<Desk: Desk A>) E + where <bound method BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_method of <django.db.models.manager.Manager object at 0x7f3a1a1a1ac8>> = <django.db.models.manager.Manager object at 0x7f3a1a1a1ac8>.filter E + where <django.db.models.manager.Manager object at 0x7f3a1a1a1ac8> = TimePeriodException.objects tests/test_manager.py:1498: AssertionError
Révisions associées
Historique
Mis à jour par Emmanuel Cazenave il y a plus de 4 ans
Mis à jour par Benjamin Dauvergne il y a plus de 4 ans
- Statut changé de Nouveau à Résolu (à déployer)
commit 41d68d6fd741ed1d3f88ceacdffc51c9f4e1f8d8 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Sat Jan 4 10:49:57 2020 +0100 tests: pin current time (#38737) Recurring time period exceptions are computed for the next 600 days, on a yearly recurrence there can be one or two occurences in the next 600 days. We pin time to 2018-12-01 to be sure there a two new years eve in the following 600 days making tests on time period exceptions import deterministic.
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: pin current time (#38737)
Recurring time period exceptions are computed for the next 600 days, on
a yearly recurrence there can be one or two occurences in the next 600
days. We pin time to 2018-12-01 to be sure there a two new years eve in
the following 600 days making tests on time period exceptions import
deterministic.