mirror of https://github.com/django/django.git
Refs #27218 -- Fixed LogEntry tests on MySQL 5.5.
This commit is contained in:
parent
e1b4360adc
commit
e5f5e8ac17
|
@ -185,7 +185,7 @@ class LogEntryTests(TestCase):
|
||||||
self.user.pk, content_type_pk, self.a1.pk, repr(self.a1), CHANGE,
|
self.user.pk, content_type_pk, self.a1.pk, repr(self.a1), CHANGE,
|
||||||
change_message='Changed something else',
|
change_message='Changed something else',
|
||||||
)
|
)
|
||||||
self.assertEqual(log_entry, LogEntry.objects.latest('action_time'))
|
self.assertEqual(log_entry, LogEntry.objects.latest('id'))
|
||||||
|
|
||||||
def test_recentactions_without_content_type(self):
|
def test_recentactions_without_content_type(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -539,9 +539,9 @@ class ModelAdminTests(TestCase):
|
||||||
ma = ModelAdmin(Band, self.site)
|
ma = ModelAdmin(Band, self.site)
|
||||||
mock_request = MockRequest()
|
mock_request = MockRequest()
|
||||||
mock_request.user = User.objects.create(username='bill')
|
mock_request.user = User.objects.create(username='bill')
|
||||||
self.assertEqual(ma.log_addition(mock_request, self.band, 'added'), LogEntry.objects.latest('action_time'))
|
self.assertEqual(ma.log_addition(mock_request, self.band, 'added'), LogEntry.objects.latest('id'))
|
||||||
self.assertEqual(ma.log_change(mock_request, self.band, 'changed'), LogEntry.objects.latest('action_time'))
|
self.assertEqual(ma.log_change(mock_request, self.band, 'changed'), LogEntry.objects.latest('id'))
|
||||||
self.assertEqual(ma.log_change(mock_request, self.band, 'deleted'), LogEntry.objects.latest('action_time'))
|
self.assertEqual(ma.log_change(mock_request, self.band, 'deleted'), LogEntry.objects.latest('id'))
|
||||||
|
|
||||||
|
|
||||||
class CheckTestCase(SimpleTestCase):
|
class CheckTestCase(SimpleTestCase):
|
||||||
|
|
Loading…
Reference in New Issue