Opened 15 years ago

Closed 15 years ago

#10535 closed (duplicate)

No Exception is thrown or output when fixtures are not found

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

Description

When a unit test is run with fixtures that do not exist, no error is reported, and thus tests fail for un-obvious reasons.

When setting up tests it is desirable to know about any shortcomings of the tests. It is desired therefore that a traceback is recorded when a bad fixture is specified similar to when an error is thrown when loading the fixtures.

Change History (3)

comment:1 by peterbraden, 15 years ago

It seems this is down to the verbosity being set to 0:

call_command('loaddata', *self.fixtures, {

'verbosity': 0,
'commit': False
})

I haven't got time to test/write patch within the next few weeks, but is seems it should be as simple as turning verbosity to 1.

comment:2 by Lorenzo Gil Sanchez, 15 years ago

This looks like a duplicate of #10200

comment:3 by Jacob, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #10200

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