Opened 8 years ago

Closed 8 years ago

#3125 closed defect (duplicate)

Tests in tests.py not run in an app without a models.py file

Reported by: anonymous Owned by: adrian
Component: Testing framework Version: master
Severity: trivial Keywords: doctest, unittest
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you have an app for common custom template tags (for example), without a models.py file, but the app contains a tests.py file, tests from tests.py are not run by django.test.simple.run_tests.

Should it be mandatory for an installed app to contain a models.py file?

c.

Change History (3)

comment:1 Changed 8 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

comment:2 Changed 8 years ago by Simon G. <dev@…>

  • Triage Stage changed from Unreviewed to Design decision needed

comment:3 Changed 8 years ago by Gary Wilson <gary.wilson@…>

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

Marking this a dup of #3310, as there is a patch there.

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