Skip to content

Commit

Permalink
Use same transformation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel committed Apr 28, 2024
1 parent 9bcf0ef commit a48bb1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_deconstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.db.migrations.writer import MigrationWriter

from timezone_field import TimeZoneField
from timezone_field.choices import standard


@pytest.fixture(
Expand Down Expand Up @@ -72,7 +73,7 @@ def test_specifying_defaults_not_frozen(use_pytz, to_tzobj, base_tzstrs):
_name, _path, _args, kwargs = field.deconstruct()
assert "max_length" not in kwargs

choices = [(to_tzobj(tz), tz.replace("_", " ")) for tz in base_tzstrs]
choices = standard(base_tzstrs)
field = TimeZoneField(choices=choices, use_pytz=use_pytz)
_name, _path, _args, kwargs = field.deconstruct()
assert "choices" not in kwargs
Expand Down

0 comments on commit a48bb1a

Please sign in to comment.