oncall-engine/engine/apps/schedules/tests
Michael Derynck c65a3c9cea
Fix for user appearing in shift rotation when they should not be (#5064)
# What this PR does
Fix calculation for interval when building ical events for schedules
with end dates and masked days. Add a test which makes it easier to test
different cases that can occur.

## Which issue(s) this PR closes

Related to https://github.com/grafana/support-escalations/issues/12388

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Matias Bordese <mbordese@gmail.com>
2024-10-03 20:04:55 +00:00
..
calendars Handle ical schedule import with duplicated event UIDs (#2760) 2023-08-07 13:11:46 +00:00
tasks Address deprecation warnings in tests (#4681) 2024-08-13 20:51:18 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
custom_shift_test_cases.py Fix for user appearing in shift rotation when they should not be (#5064) 2024-10-03 20:04:55 +00:00
factories.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
test_amixr_users_in_ical.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_check_gaps_and_empty_shifts.py Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
test_custom_on_call_shift.py Fix for user appearing in shift rotation when they should not be (#5064) 2024-10-03 20:04:55 +00:00
test_ical_proxy.py Add multiple ical all-day event for testing 2022-11-03 14:36:42 -03:00
test_ical_utils.py Fix deleted schedule on getting on-call users from cache (#4763) 2024-07-31 15:17:08 +00:00
test_notify_about_empty_shifts_in_schedule.py Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
test_notify_about_gaps_in_schedule.py Refactor gaps and empty shift checks (#3785) 2024-01-31 15:25:06 +01:00
test_on_call_schedule.py Update schedule related users to use cached final representation (#5101) 2024-10-01 13:37:28 +00:00
test_quality_score.py Move cache clear to fixtures, fix some deprecation notices (#3269) 2023-11-06 16:52:50 +00:00
test_shift_swap_request.py bump uwsgi to 2.0.26 + Python to 3.12.3 (#4495) 2024-06-10 15:33:37 -04:00