Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/exceptional situations tests #384

Merged
merged 7 commits into from
Sep 6, 2024
Merged

Commits on Sep 3, 2024

  1. Replace django.utils.timezone with datetime.timezone

    django.utils.timezone is deprecated in Django 5.0
    juuso-j committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c35b802 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8ffdff View commit details
    Browse the repository at this point in the history
  3. Fix test_situation_filter_by_start_time

    Subtract 6 hours from start_time, otherwise the test can fail in cases where the tests takes long time to execute.
    juuso-j committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1c26e28 View commit details
    Browse the repository at this point in the history
  4. Set now = timezone.now() inside functions

    This removes errors that occurs of how fast tests are run
    juuso-j committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    999d047 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2979eb8 View commit details
    Browse the repository at this point in the history
  6. Use now fixture

    juuso-j committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ab76d40 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    389f718 View commit details
    Browse the repository at this point in the history