From a48bb1a3f8814a6a5a9614a1c331f7265911741e Mon Sep 17 00:00:00 2001 From: Mike Fogel Date: Sun, 28 Apr 2024 10:09:52 -0700 Subject: [PATCH] Use same transformation in tests --- tests/test_deconstruct.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_deconstruct.py b/tests/test_deconstruct.py index 7390730..5ee0771 100644 --- a/tests/test_deconstruct.py +++ b/tests/test_deconstruct.py @@ -2,6 +2,7 @@ from django.db.migrations.writer import MigrationWriter from timezone_field import TimeZoneField +from timezone_field.choices import standard @pytest.fixture( @@ -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