Opened 21 months ago

Last modified 17 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

Description

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.

Change History (2)

comment:1 Changed 21 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 17 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.

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