Loading tests/one_to_one_regress/tests.py +9 −5 Original line number Diff line number Diff line from __future__ import unicode_literals from django.db import connection from django.test import TestCase from .models import (Bar, Favorites, HiddenPointer, Place, Restaurant, Target, Loading Loading @@ -226,6 +227,9 @@ class OneToOneRegressionTests(TestCase): with self.assertRaises(UndergroundBar.DoesNotExist): p.undergroundbar # Several instances of the origin are only possible if database allows # inserting multiple NULL rows for a unique constraint if connection.features.ignores_nulls_in_unique_constraints: UndergroundBar.objects.create() # When there are several instances of the origin Loading Loading
tests/one_to_one_regress/tests.py +9 −5 Original line number Diff line number Diff line from __future__ import unicode_literals from django.db import connection from django.test import TestCase from .models import (Bar, Favorites, HiddenPointer, Place, Restaurant, Target, Loading Loading @@ -226,6 +227,9 @@ class OneToOneRegressionTests(TestCase): with self.assertRaises(UndergroundBar.DoesNotExist): p.undergroundbar # Several instances of the origin are only possible if database allows # inserting multiple NULL rows for a unique constraint if connection.features.ignores_nulls_in_unique_constraints: UndergroundBar.objects.create() # When there are several instances of the origin Loading