Skip to content

Commit

Permalink
chore(tests): import pendulum in base tests (#19067)
Browse files Browse the repository at this point in the history
* chore(ci): no class level freezegun

* surely this isn't the way

* import pendulum for sideeffect

* Revert "surely this isn't the way"

This reverts commit eaa2f1a.

* Revert "chore(ci): no class level freezegun"

This reverts commit c274de9.

* try and stop ruff deleting the line on commit
  • Loading branch information
pauldambra authored Dec 5, 2023
1 parent 2fc0864 commit eaf27d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions posthog/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
from unittest.mock import patch

import freezegun

# we have to import pendulum for the side effect of importing it
# freezegun.FakeDateTime and pendulum don't play nicely otherwise
import pendulum # noqa F401
import pytest
import sqlparse
from django.apps import apps
Expand Down

0 comments on commit eaf27d3

Please sign in to comment.