Opened 2 years ago

Closed 2 years ago

#20453 closed Bug (fixed)

Failure in inspectdb tests under Oracle

Reported by: shai Owned by: shai
Component: Database layer (models, ORM) Version: master
Severity: Release blocker Keywords: oracle
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: no UI/UX: no


Solving one problem (#20386) revealed another one hiding beneath it:

FAIL: test_special_column_name_introspection (inspectdb.tests.InspectDBTestCase)
Traceback (most recent call last):
  File "/home/heal/Django/tests/inspectdb/", line 149, in test_special_column_name_introspection
    self.assertIn("prc_x = models.IntegerField(db_column='prc(%) x')", output)
AssertionError: ...

... to make a long story short: the output has

prc_x = models.IntegerField(db_column='prc(%%) x')

instead of db_column='prc(%) x' as expected. A percent sign is doubled.

Change History (1)

comment:1 Changed 2 years ago by Shai Berger <shai@…>

  • Resolution set to fixed
  • Status changed from new to closed

In b6ad9998e6436e81f7dfbf1961a147d00816fb1f:

Fixed #20453 -- inspectdb test failure on Oracle

Note: See TracTickets for help on using tickets.
Back to Top