Run non auto field model test unconditional
parent
9997644929
commit
28fe5d1460
|
|
@ -6,7 +6,6 @@ except ImportError:
|
||||||
import json
|
import json
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from django import VERSION
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
|
@ -312,8 +311,5 @@ class SortableTestCase(TestCase):
|
||||||
self.assertEqual(notes, expected_notes)
|
self.assertEqual(notes, expected_notes)
|
||||||
|
|
||||||
def test_save_non_auto_field_model(self):
|
def test_save_non_auto_field_model(self):
|
||||||
if VERSION > (1, 8):
|
|
||||||
model = TestNonAutoFieldModel()
|
model = TestNonAutoFieldModel()
|
||||||
model.save()
|
model.save()
|
||||||
else:
|
|
||||||
pass
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue