mirror of
https://github.com/django/django.git
synced 2025-11-10 08:03:43 +00:00
Removed debugging code added in last commit.
This commit is contained in:
parent
72130385bf
commit
d4648a3446
1 changed files with 0 additions and 3 deletions
|
|
@ -28,9 +28,6 @@ class InspectDBTestCase(TestCase):
|
||||||
call_command('inspectdb',
|
call_command('inspectdb',
|
||||||
table_name_filter=lambda tn:tn.startswith('inspectdb_'),
|
table_name_filter=lambda tn:tn.startswith('inspectdb_'),
|
||||||
stdout=out)
|
stdout=out)
|
||||||
f = open('/home/ramiro/models2.py', 'w')
|
|
||||||
f.write(out.getvalue())
|
|
||||||
f.close()
|
|
||||||
error_message = "inspectdb generated an attribute name which is a python keyword"
|
error_message = "inspectdb generated an attribute name which is a python keyword"
|
||||||
self.assertNotIn("from = models.ForeignKey(InspectdbPeople)", out.getvalue(), msg=error_message)
|
self.assertNotIn("from = models.ForeignKey(InspectdbPeople)", out.getvalue(), msg=error_message)
|
||||||
# As InspectdbPeople model is defined after InspectdbMessage, it should be quoted
|
# As InspectdbPeople model is defined after InspectdbMessage, it should be quoted
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue