Opened 18 years ago

Closed 18 years ago

#2916 closed defect (fixed)

[patch] create_test_db() in the django's unittest framework is supposed to automatically run syncdb

Reported by: remco@… Owned by: Russell Keith-Magee
Component: Testing framework Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

According to the documentation (http://www.djangoproject.com/documentation/testing/) django.test.util.create_test_db is supposed to do a syncdb. In the current implementation django's own simple testrunner does the syncdb. This patch moves the call to syncdb from simple.py to utils.py so people using other test frameworks (I use py.test) will also have an automatic syncdb.

Attachments (1)

test.diff (1.5 KB ) - added by remco@… 18 years ago.
patch

Download all attachments as: .zip

Change History (5)

by remco@…, 18 years ago

Attachment: test.diff added

patch

comment:1 by Russell Keith-Magee, 18 years ago

Owner: changed from Adrian Holovaty to Russell Keith-Magee

comment:2 by Adrian Holovaty, 18 years ago

Summary: [PATCH] create_test_db() in the django's unittest framework is supposed to automatically run syncdb[patch] create_test_db() in the django's unittest framework is supposed to automatically run syncdb

comment:3 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedReady for checkin

comment:4 by Russell Keith-Magee, 18 years ago

Resolution: fixed
Status: newclosed

(In [4541]) Fixed #2916 -- Moved syncdb call out of simple test runner and into create_test_db, to match documentation and simplify testing process for people using other test frameworks. Thanks, remco@….

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