summaryrefslogtreecommitdiff
path: root/django/test
AgeCommit message (Collapse)Author
2007-05-05Backwards incompatible change: Changed the way test.Client.login operates. ↵Russell Keith-Magee
Old implemenation was fragile, and tightly bound to forms. New implementation interfaces directly with the login system, is compatible with any authentication backend, and doesn't depend upon specific template inputs being available. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-05Added a default test Client to TestCase, and added some assertions for some ↵Russell Keith-Magee
common testing patterns. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29Fixed #3253 -- Included test errors in the return code.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-22Fixes #3212 -- Added code to test client to allow posting of multi-form ↵Russell Keith-Magee
values (e.g., MultipleChoiceFields). Thanks, Ben Dean Kawamura. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-01Fixes #2333 -- Added test fixtures framework.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26Fixed #3253 -- Exposed the number of failed tests as a return code in ↵Russell Keith-Magee
manage.py and runtests.py. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18Fixed #2916 -- Moved syncdb call out of simple test runner and into ↵Russell Keith-Magee
create_test_db, to match documentation and simplify testing process for people using other test frameworks. Thanks, remco@diji.biz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18Fixed #3210 -- Modified test Client.login() to use urlparse, allowing ↵Russell Keith-Magee
absolute URLs in the Location header. Thanks, Ben Dean Kawamura. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17Fixed #3160 -- Added the ability to control the content type in a test ↵Russell Keith-Magee
client POST request. This is to allow easier testing of json-rpc/xml-rpc/soap etc interfaces. Thanks to Mikeal Rogers for the suggestion, and Ben <afternoon@uk2.net> for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11Revert [4485] in order to fix accidental mod_python breakage. Refs #2920.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11Refs #2920 -- Replaced implicit uses of _() with explicit imports or calls ↵Russell Keith-Magee
to gettext(). At some point post 0.96, we need to remove the calls that put _ into the builtins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11Fixed #3162 -- Added coded to catch and rethrow exceptions that are thrown ↵Russell Keith-Magee
by the views visited by the test client. Thanks, Ben <afternoon@uk2.net>. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-09Added a ``session`` attribute to the test Client, to make it easier to test ↵Russell Keith-Magee
if session variables have been modified in a view. Also renamed Client.cookie to Client.cookies, to match documentation and common sense. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-30Fixed #2968 -- Changed arguments to __import__ to use empty dictionary ↵Adrian Holovaty
instead of empty string, for stricter compliance with Python library reference. Thanks for the patch, Yasushi Masuda git-svn-id: http://code.djangoproject.com/svn/django/trunk@3951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-28Changed BaseHandler.get_response() to take a single parameter (an ↵Adrian Holovaty
HttpRequest object) rather than a URL and the HttpRequest object, which is redundant git-svn-id: http://code.djangoproject.com/svn/django/trunk@3875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Fixed #2771 -- Tweaked Django's doctest module so that it also works withMalcolm Tredinnick
Python 2.5. Thanks, ymasuda. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-09Fixes #2669 -- Added check on import of tests.py to differentiate between an ↵Russell Keith-Magee
absent tests.py, and an existent tests.py with an import error in it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-05Fixes #2658 -- Modified SQLite cursor close() method for in-memory ↵Russell Keith-Magee
databases, making the lifespan of an in-memory database equal to the life of the process, rather than the life of the cursor. Thanks, Ned Batchelder. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-02Refs #2333 - Re-added the template rendering signal for testing purposes; ↵Russell Keith-Magee
however, the signal is not available during normal operation. It is only added as part of an instrumentation step that occurs during test framework setup. Previous attempt (r3659) was reverted (r3666) due to performance concerns. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-01Refs #2333 - Added a TEST_DATABASE_NAME setting that can be used to override ↵Russell Keith-Magee
the 'test_' + DATABASE_NAME naming policy. This setting is then used in runtests.py to restore the use of 'django_test_db' as the Django model/regression test database. Thanks to Michael Radziej for the feedback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31Refs #2333 - Added more documentation for testing framework, and clarified ↵Russell Keith-Magee
some code as a result of trying to describe it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-28Test database creation/deletion now correctly quotes database names when ↵Jacob Kaplan-Moss
creating/dropping them. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-27Refs #2333 - Added test framework. This includes doctest and unittest ↵Russell Keith-Magee
finders, Django-specific doctest and unittest wrappers, and a pseudo-client that can be used to stimulate and test views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3658 bcc190cf-cafb-0310-a4f2-bffc1f526a37