Removed unnecessary MySQL workaround in timezones tests.
Unnecessary since 22da5f8817
.
This commit is contained in:
parent
3fb9c74d13
commit
f4e592e383
|
@ -1497,18 +1497,14 @@ class AdminTests(TestCase):
|
||||||
|
|
||||||
@requires_tz_support
|
@requires_tz_support
|
||||||
def test_change_readonly(self):
|
def test_change_readonly(self):
|
||||||
Timestamp.objects.create()
|
t = Timestamp.objects.create()
|
||||||
# re-fetch the object for backends that lose microseconds (MySQL)
|
|
||||||
t = Timestamp.objects.get()
|
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
reverse("admin_tz:timezones_timestamp_change", args=(t.pk,))
|
reverse("admin_tz:timezones_timestamp_change", args=(t.pk,))
|
||||||
)
|
)
|
||||||
self.assertContains(response, t.created.astimezone(EAT).isoformat())
|
self.assertContains(response, t.created.astimezone(EAT).isoformat())
|
||||||
|
|
||||||
def test_change_readonly_in_other_timezone(self):
|
def test_change_readonly_in_other_timezone(self):
|
||||||
Timestamp.objects.create()
|
t = Timestamp.objects.create()
|
||||||
# re-fetch the object for backends that lose microseconds (MySQL)
|
|
||||||
t = Timestamp.objects.get()
|
|
||||||
with timezone.override(ICT):
|
with timezone.override(ICT):
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
reverse("admin_tz:timezones_timestamp_change", args=(t.pk,))
|
reverse("admin_tz:timezones_timestamp_change", args=(t.pk,))
|
||||||
|
|
Loading…
Reference in New Issue