Commit Graph

29 Commits

Author SHA1 Message Date
Jacob Kaplan-Moss 2a65b00381 magic-removal: added transaction support to Django! see transactions.txt (in magic-removal) for the details.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 17:08:33 +00:00
Adrian Holovaty 65dc8f000b magic-removal: Removed legacy init_minimal calls. Unit test framework works again.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 04:46:06 +00:00
Adrian Holovaty 4cb8cca158 magic-removal: Merged to [2338]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:24:24 +00:00
Russell Keith-Magee 48320913ac magic-removal: Removed last references to OLD_get_accessor_name, and added unit tests to ensure accessor names are used correctly during validation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 12:46:03 +00:00
Russell Keith-Magee 6e8203a06c magic-removal: Fixes #1343 -- Modified model validator to only validate the model being installed. Includes unit test framework changes to allow validation tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-16 14:07:23 +00:00
Russell Keith-Magee 96c66c7fdb magic-removal: Deferred import of django.db.models to allow --settings option to work on runtests.py.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-05 06:24:35 +00:00
Luke Plant 6a90f49fe5 magic-removal: elimated 'module._MODELS' and replaced with a register function,
so that setting 'app_label' is all that's needed for models in different files.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-05 00:03:12 +00:00
Adrian Holovaty 23748415d3 magic-removal: Improved model unit-test runner to rollback database for each test in case of exception
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 23:24:20 +00:00
Adrian Holovaty 6074e49daa magic-removal: Merged to [2034]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 17:57:27 +00:00
Joseph Kocherhans 1091c18c39 magic-removal: django-admin.py init now installs django.contrib.sessions and django.contrib.sites. Also added init_minimal and changed runtests to use it. Note that init_minimal is not available as a django-admin.py command yet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:45:00 +00:00
Adrian Holovaty 1db708d4d7 magic-removal: Merged to [1817]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-04 17:06:16 +00:00
Adrian Holovaty aecff3e245 magic-removal: Various cleanup and moving, with respect to the recent django.core.db -> django.db move
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-14 06:24:32 +00:00
Adrian Holovaty 16f354236a magic-removal: Removed unnecessary import in runtests.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-14 04:47:09 +00:00
Adrian Holovaty 710d865b9d magic-removal: Changed runtests.py to fix import-order error in overriding settings.INSTALLED_APPS
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-14 03:50:46 +00:00
Adrian Holovaty d0c3aee64c magic-removal: Small simplification of test_namespace assignment in runtests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-13 16:17:33 +00:00
Adrian Holovaty 683e075a01 magic-removal: Changed runtests.py to use new modeltests package and to import model classes directly, rather than magic modules
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-12 05:40:09 +00:00
Adrian Holovaty c1be782510 magic-removal: Changed model unit tests to use new Model.objects.* syntax instead of models.*
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-11 22:10:02 +00:00
Adrian Holovaty e7e991e86b Fixed #964 -- Added helpful error message if there's a problem in running the unit tests. Thanks, paolo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01 06:39:39 +00:00
Adrian Holovaty b63abf0379 Fixed bug in tests/runtests.py -- some versions of MySQLdb require an argument to connection.autocommit()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 20:56:34 +00:00
Adrian Holovaty 09bd9d3ef6 Fixed #506 -- runtests.py now allows models to be tested individually. Thanks, Simon
git-svn-id: http://code.djangoproject.com/svn/django/trunk@646 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-19 01:18:04 +00:00
Jacob Kaplan-Moss f65350b197 Doctest now uses the ELLIPSIS option, which allows the one_to_one test to pass under sqlite. This fixes #238.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 18:10:38 +00:00
Jacob Kaplan-Moss 3a1ae2164b Added a custom doctest OutputChecker that ignores differences between ints and longs in values returned from the database; refs #238
git-svn-id: http://code.djangoproject.com/svn/django/trunk@465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 18:00:52 +00:00
Adrian Holovaty 151bf05850 Fixed #297 -- Added a '--settings' option to runtests.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 15:36:16 +00:00
Adrian Holovaty fd579f24d7 Improved unit-test framework so that it handles database errors more elegantly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09 23:51:55 +00:00
Jacob Kaplan-Moss 440a2a97e9 Added framework for writing non-model-based tests, and added tests for cache and templates
from the old django/tests location (which has been removed).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:09:07 +00:00
Adrian Holovaty 5002b44f28 Added tests.builddocs, which builds HTML documentation by introspecting the model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 22:35:54 +00:00
Adrian Holovaty a47794c824 Changed model test framework to use meta.get_app() instead of a manual import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 20:25:02 +00:00
Jacob Kaplan-Moss f6e75ab3cf Added support for sqlite backend to test framework
git-svn-id: http://code.djangoproject.com/svn/django/trunk@341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 19:22:50 +00:00
Adrian Holovaty daf8467b37 Added first stab at model and DB-API unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 15:15:40 +00:00