django/tests/regressiontests
Ramiro Morales f758bdab5e Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.
Previously, the flush was done before the test case execution and now
it is performed after it.

Other changes to the testing infrastructure include:

* TransactionTestCase now doesn't reset autoincrement sequences either
  (previous behavior can achieved by using `reset_sequences`.)
  With this, no implicit such reset is performed by any of the provided
  TestCase classes.

* New ordering of test cases: All unittest tes cases are run first and
  doctests are run at the end.

THse changes could be backward-incompatible with test cases that relied
on some kind of state being preserved between tests. Please read the
relevant sections of the release notes and testing documentation for
further details.

Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi
Kääriäinen for the feedback and Anssi for reviewing.

This also fixes #12408.
2012-07-24 17:24:16 -03:00
..
admin_changelist [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
admin_custom_urls Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
admin_filters Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
admin_inlines Fixed #18433 -- Fixed "View on Site" link in inline admin for models with custom PK 2012-06-07 21:08:36 +02:00
admin_ordering Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
admin_registration Fixed #17090 -- Made the API specification for `ModelAdmin.get_list_display()` more consistent with that of `ModelAdmin.list_display` by separating out the admin action check boxes business. This is backwards-incompatible for those who have been using the still-unreleased `get_list_display()` method. Thanks to Ramiro Morales for the review. 2011-10-26 09:37:07 +00:00
admin_scripts Fixed #18318 -- Changed some tests to be 3rd party DB friendly 2012-05-22 23:33:42 +03:00
admin_util [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
admin_validation Convert much of the regression tests to use absolute imports. There's still work to be done though. 2011-10-13 18:51:33 +00:00
admin_views [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
admin_widgets Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
aggregation_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
app_loading Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
backends [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
bash_completion Removed the deprecated reset and sqlreset management commands. 2012-03-31 12:38:11 +00:00
bug639 Made more extensive usage of context managers with open. 2012-05-05 14:06:36 +02:00
bug8245 Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
builtin_server Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
bulk_create Fixed #17788 -- Added batch_size argument to qs.bulk_create() 2012-07-17 15:24:41 +03:00
cache Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
comment_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
conditional_processing Switched to Python 3-compatible octal notation. 2012-07-20 13:28:36 +02:00
context_processors Convert much of the regression tests to use absolute imports. There's still work to be done though. 2011-10-13 18:51:33 +00:00
createsuperuser Replaced deprecated TestCase methods. Refs #17049. 2012-05-03 16:39:16 +02:00
csrf_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
custom_columns_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
custom_managers_regress Convert much of the regression tests to use absolute imports. There's still work to be done though. 2011-10-13 18:51:33 +00:00
datatypes [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
dates Convert much of the regression tests to use absolute imports. There's still work to be done though. 2011-10-13 18:51:33 +00:00
db_typecasts Removed remains from times when tests could be run outside of runtests.py. 2011-10-26 21:03:18 +00:00
decorators Replaced im_func and im_self by __func__ and __self__. 2012-05-12 22:35:21 +02:00
defaultfilters [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
defer_regress Fixed #17485 -- Made defer work with select_related 2012-06-26 18:08:42 +03:00
delete_regress Fixed #17918 - Handle proxy models correctly when sorting deletions for databases without deferred constraints. Thanks Nate Bragg for the report. 2012-03-17 01:24:39 +00:00
dispatch [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
expressions_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
extra_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
file_storage Switched to Python 3-compatible octal notation. 2012-07-20 13:28:36 +02:00
file_uploads [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
fixtures_regress [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
forms [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
generic_inline_admin Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
generic_relations_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
generic_views Fixed #16418 -- Made generic views work with ModelForms 2012-06-09 01:12:14 +03:00
get_or_create_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
handlers Marked bytestrings with b prefix. Refs #18269 2012-05-19 17:43:34 +02:00
httpwrappers Fixed #18561 -- Made HttpResponse.tell() support non-ascii chars 2012-07-17 22:00:54 +02:00
i18n [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
initial_sql_regress Re-added Windows line ending stripped in previous commit 2012-07-21 15:38:28 +02:00
inline_formsets [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
inspectdb Removed debugging code added in last commit. 2012-06-01 21:50:06 -03:00
introspection Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
localflavor Removed u prefixes on unicode strings. 2012-07-20 12:29:22 +02:00
logging_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
m2m_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
m2m_through_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
mail Switch to using context managers for acquiring and releasing locks. 2012-06-23 08:11:15 -07:00
managers_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
many_to_one_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
max_lengths Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
middleware [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
middleware_exceptions Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
model_fields [py3] Removed longs. 2012-07-22 09:29:53 +02:00
model_forms_regress [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
model_formsets_regress [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
model_inheritance_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
model_inheritance_select_related Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
model_permalink Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
model_regress [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
modeladmin Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
multiple_database Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
null_fk Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
null_fk_ordering Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
null_queries Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
one_to_one_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
pagination_regress Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
queries [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
queryset_pickle Fixed #17776 - DoesNotExist is not picklable 2012-06-22 13:28:15 +01:00
requests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
reverse_single_related Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
select_related_onetoone Made the caching of related and reverse related objects consistent in OneToOneFields. Fixed #13839. Refs #17439. 2012-04-10 12:29:25 +00:00
select_related_regress [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
serializers_regress Fixed #15197 -- Fixed yaml serialization into HttpResponse 2012-06-28 16:29:29 +02:00
servers [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
settings_tests Replaced deprecated TestCase methods. Refs #17049. 2012-05-03 16:39:16 +02:00
signals_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
signed_cookies_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
signing Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
sites_framework Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
special_headers Ensured tests pass using custom PASSWORD_HASHERS. 2012-04-30 22:10:27 +03:00
staticfiles_tests [py3] Replaced basestring by six.string_types. 2012-07-22 09:29:54 +02:00
string_lookup Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
syndication Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
templates [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
test_client_regress Removed usage of mimetype kwarg of HttpResponse 2012-06-30 21:19:07 +02:00
test_runner Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
test_utils Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
text Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
transactions_regress Stylistic cleanup of Postgres autocommit tests 2012-07-03 10:22:13 +03:00
urlpatterns_reverse Fixed #6170 -- Ensured that a useful exception is raised when a regex is invalid in the URLConf. 2012-07-21 13:30:34 -07:00
utils Added tests for deprecation warnings and fixed the argument order for the warnings. 2012-07-24 07:01:57 -07:00
version Fixed #18224 -- Changed the dev version number. 2012-04-29 13:40:10 +02:00
views Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
wsgi [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
__init__.py Added regressions tests to ensure that one-to-one and many-to-many fields 2006-06-20 05:29:19 +00:00