#35114 closed New feature (wontfix)

Create a tests directory instead of tests.py when a new app is created

Reported by: Salaah Amin Owned by: Salaah Amin
Component: Core (Management commands) Version: dev
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

Description

In every Django project I've seen, whenever a new app is created, tests.py is deleted and is replaced with a tests directory containing initially an `init.py.

I propose instead of creating a tests.py on app creation, create that which is described above.

I'd be happy to take this ticket myself if it's approved.

Change History (1)

comment:1 by Mariusz Felisiak, 11 months ago

Resolution: wontfix
Status: assignedclosed
Type: Cleanup/optimizationNew feature

In every Django project I've seen...

I have a completely different experience. I've seen/created many apps without a tests directory. I think that the current shape of the default app is the right consensus and creating a tests directory by users is not a big burden (if needed).

Please first start a discussion on the DevelopersMailingList, where you'll reach a wider audience and see what other think, and follow the triaging guidelines with regards to wontfix tickets.

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