#22988: Test in introspection package appears to be wrong
----------------------------------------------+----------------------
Reporter: smeatonj | Owner: smeatonj
Type: Cleanup/optimization | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
----------------------------------------------+----------------------
A test in tests/introspection/tests.py appears to be wrong:
{{{
def test_django_table_names(self):
with connection.cursor() as cursor:
cursor.execute('CREATE TABLE django_ixn_test_table (id
INTEGER);')
tl = connection.introspection.django_table_names()
cursor.execute("DROP TABLE django_ixn_test_table;")
self.assertTrue('django_ixn_testcase_table' not in tl,
"django_table_names() returned a non-Django
table")
}}}
The assertion is checking for the non-existence of a table name that
doesn't match the one just created. PR coming.
--
Ticket URL: <https://code.djangoproject.com/ticket/22988>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.9d0be1b60c2b959887cb69785c2f915a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.