Opened 3 years ago

Closed 3 years ago

#18497 closed Bug (invalid)

Bug with TestCase handling JSON views

Reported by: anonymous Owned by: nobody
Component: Testing framework Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There is a bug with handling JSON objects in views for the test framework.

I posted details about it in a stackoverflow post (and this issue has been around for a while).

Change History (1)

comment:1 Changed 3 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

AFAICS, you wrongly assume that a Python dict equals a JSON structure. Use json.dumps() to convert a Python dict to a JSON structure.

By the way, the ticketing system is not meant as a support channel (TicketClosingReasons/UseSupportChannels)

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