diff options
| author | David Smith <39445562+smithdc1@users.noreply.github.com> | 2023-06-14 07:01:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-14 08:01:14 +0200 |
| commit | 0cfcab4eec6a9ebdd1306d3c4c4c6b7bcfcd23f1 (patch) | |
| tree | 00684101c9753c2acf171a79fd9342fe7eb6cab2 /tests/admin_widgets | |
| parent | 26aedbbc0835df83140c7424df62bda03382f598 (diff) | |
Fixed date_time_picker_shortcuts() tests on Windows.
Windows does not allow overriding TIME_ZONE as time.tzset() is only
available on Unix.
Diffstat (limited to 'tests/admin_widgets')
| -rw-r--r-- | tests/admin_widgets/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index 0a65ef06f0..80bb6233ab 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -23,6 +23,7 @@ from django.db.models import ( UUIDField, ) from django.test import SimpleTestCase, TestCase, ignore_warnings, override_settings +from django.test.utils import requires_tz_support from django.urls import reverse from django.utils import translation from django.utils.deprecation import RemovedInDjango60Warning @@ -1120,6 +1121,7 @@ class DateTimePickerSeleniumTests(AdminWidgetSeleniumTestCase): self.wait_for_text("#calendarin0 caption", expected_caption) +@requires_tz_support @override_settings(TIME_ZONE="Asia/Singapore") class DateTimePickerShortcutsSeleniumTests(AdminWidgetSeleniumTestCase): def test_date_time_picker_shortcuts(self): |
