summaryrefslogtreecommitdiff
path: root/tests/inspectdb
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-03-21 10:37:56 -0400
committerTim Graham <timograham@gmail.com>2018-03-21 10:39:36 -0400
commita170dac887ba17afb0adb7a837410dd26471f097 (patch)
tree977f1ba48f1ab4665f7849c73c4fef1b29a07234 /tests/inspectdb
parentbb79e480e17fd9cabc6d6c873f721c66d1ad7465 (diff)
Fixed too many parentheses in inspectdb Meta.unique_together output.
Regression in c76d87427d70f6c91ab855ed688828aa982720d2.
Diffstat (limited to 'tests/inspectdb')
-rw-r--r--tests/inspectdb/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py
index db61246c6a..b6bbf0b2dd 100644
--- a/tests/inspectdb/tests.py
+++ b/tests/inspectdb/tests.py
@@ -211,6 +211,7 @@ class InspectDBTestCase(TestCase):
out = StringIO()
call_command('inspectdb', 'inspectdb_uniquetogether', stdout=out)
output = out.getvalue()
+ self.assertIn(" unique_together = (('", output)
unique_re = re.compile(r'.*unique_together = \((.+),\).*')
unique_together_match = re.findall(unique_re, output)
# There should be one unique_together tuple.