Skip to content

Commit

Permalink
Do not tamper with django.conf.settings in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki committed Oct 27, 2023
1 parent 73e16a0 commit d9b354e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_baker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def test_unseeded(self):
class TestAutoNowFields:
@pytest.mark.django_db
@pytest.mark.parametrize("use_tz", [False, True])
def test_make_with_auto_now(self, use_tz):
def test_make_with_auto_now(self, use_tz, settings):
settings.USE_TZ = use_tz
tzinfo = datetime.timezone.utc if use_tz else None

Expand Down

0 comments on commit d9b354e

Please sign in to comment.