summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/inspectdb/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py
index bb5e457739..2dc65eb309 100644
--- a/tests/inspectdb/tests.py
+++ b/tests/inspectdb/tests.py
@@ -152,11 +152,11 @@ class InspectDBTestCase(TestCase):
output,
)
self.assertIn(
- "people_pk = models.ForeignKey(InspectdbPeople, models.DO_NOTHING, primary_key=True)",
+ 'people_pk = models.OneToOneField(InspectdbPeople, models.DO_NOTHING, primary_key=True)',
output,
)
self.assertIn(
- "people_unique = models.ForeignKey(InspectdbPeople, models.DO_NOTHING, unique=True)",
+ 'people_unique = models.OneToOneField(InspectdbPeople, models.DO_NOTHING)',
output,
)