mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Tests regression in 4c75858135
.
This commit is contained in:
parent
1fb3f57e81
commit
dd133054cb
2 changed files with 3 additions and 3 deletions
|
@ -629,7 +629,7 @@ class InspectDBTransactionalTests(TransactionTestCase):
|
|||
def test_composite_primary_key(self):
|
||||
out = StringIO()
|
||||
field_type = connection.features.introspected_field_types["IntegerField"]
|
||||
call_command("inspectdb", "inspectdb_compositeprimarykeymodel", stdout=out)
|
||||
call_command("inspectdb", "inspectdb_compositepkmodel", stdout=out)
|
||||
output = out.getvalue()
|
||||
self.assertIn(
|
||||
"pk = models.CompositePrimaryKey('column_1', 'column_2')",
|
||||
|
@ -640,5 +640,5 @@ class InspectDBTransactionalTests(TransactionTestCase):
|
|||
|
||||
def test_composite_primary_key_not_unique_together(self):
|
||||
out = StringIO()
|
||||
call_command("inspectdb", "inspectdb_compositeprimarykeymodel", stdout=out)
|
||||
call_command("inspectdb", "inspectdb_compositepkmodel", stdout=out)
|
||||
self.assertNotIn("unique_together", out.getvalue())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue