Opened 7 months ago

Last modified 3 months ago

#21549 assigned Bug

Fixture loading should fail with a BIG LOUD EXCEPTION when the file is not found

Reported by: mpasternak Owned by: bugZPDX
Component: Core (Management commands) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Fixture lodaing should fail with an exception when there is no fixture file in both loaddata AND unit tests.

Any reasons, why do we silently ignore the fact of missing fixture file ATM?

If none, I can try working on a patch.

Attachments (0)

Change History (2)

comment:1 Changed 7 months ago by apollo13

  • Component changed from Uncategorized to Core (Management commands)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Version changed from 1.6 to master

The current behavior of issuing a warning is indeed kind of odd.

comment:2 Changed 3 months ago by bugZPDX

  • Owner changed from nobody to bugZPDX
  • Status changed from new to assigned

The loaddata function in find_fixtures via load_label warns properly, however something in the interactive command is masking the error. I will continue investigating the issue.

Add Comment

Modify Ticket

Change Properties
<Author field>
as assigned
The owner will be changed from bugZPDX to anonymous. Next status will be 'assigned'
The ticket will be disowned. Next status will be 'new'
as The resolution will be set. Next status will be 'closed'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.