Django

Code

Ticket #2916 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: remco@diji.biz Assigned to: russellm
Milestone: Component: Testing framework
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

test.diff (1.5 kB) - added by remco@diji.biz on 10/16/06 10:01:16.
patch

Change History

10/16/06 10:01:16 changed by remco@diji.biz

  • attachment test.diff added.

patch

10/16/06 19:47:40 changed by russellm

  • owner changed from adrian to russellm.

11/26/06 18:14:32 changed by adrian

  • summary changed from [PATCH] create_test_db() in the django's unittest framework is supposed to automatically run syncdb to [patch] create_test_db() in the django's unittest framework is supposed to automatically run syncdb.

02/17/07 10:17:57 changed by Simon G. <dev@simon.net.nz>

  • stage changed from Unreviewed to Ready for checkin.

02/18/07 02:07:19 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(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@diji.biz.


Add/Change #2916 ([patch] create_test_db() in the django's unittest framework is supposed to automatically run syncdb)




Change Properties
Action