django1/tests/regressiontests
Anssi Kääriäinen 01b9c3d519 Fixed #16715 -- Fixed join promotion logic for nested nullable FKs
The joins for nested nullable foreign keys were often created as INNER
when they should have been OUTER joins. The reason was that only the
first join in the chain was promoted correctly. There were also issues
with select_related etc.

The basic structure for this problem was:
  A -[nullable]-> B -[nonnull]-> C

And the basic problem was that the A->B join was correctly LOUTER,
the B->C join not.

The major change taken in this patch is that now if we promote a join
A->B, we will automatically promote joins B->X for all X in the query.
Also, we now make sure there aren't ever join chains like:
   a LOUTER b INNER c
If the a -> b needs to be LOUTER, then the INNER at the end of the
chain will cancel the LOUTER join and we have a broken query.

Sebastian reported this problem and did also major portions of the
patch.
2012-08-25 14:14:45 +03:00
..
admin_changelist Fixed the admin_changelist tests for python3. 2012-08-15 23:09:01 -04:00
admin_custom_urls [py3] Fixed admin_custom_urls tests. 2012-08-14 14:38:23 +02:00
admin_filters [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_inlines [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +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 [py3] Fixed admin_scripts tests 2012-08-13 10:58:21 +02:00
admin_util [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_validation [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_views Fixed usage of several deprecated aliases in unittest. 2012-08-15 01:38:04 -07:00
admin_widgets [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
aggregation_regress Fixed #13844 -- Avoid converting unknown db values to float 2012-08-12 21:52:52 +03:00
app_loading Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
backends Cleaned up a test slightly. 2012-08-18 11:02:28 +02:00
bash_completion [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02: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 [py3] Ported django.core.servers. 2012-08-16 13:01:16 +02:00
bulk_create Fixed #17788 -- Added batch_size argument to qs.bulk_create() 2012-07-17 15:24:41 +03:00
cache [py3] Fixed more encoding issues in cache tests 2012-08-15 22:48:09 +02:00
comment_tests [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
conditional_processing [py3] Fixed conditional_processing tests 2012-08-14 23:35:12 +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 [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
csrf_tests [py3] Made csrf context processor return Unicode 2012-08-13 11:54:21 +02:00
custom_columns_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
datatypes [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
dates [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
db_typecasts [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
decorators [py3] Various minor syntax fixes in the test suite 2012-08-11 23:23:31 +02:00
defaultfilters [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
defer_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02: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] Fixed dispatch tests 2012-08-15 18:19:21 +02:00
expressions_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
extra_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
file_storage Always close files in the file_storage tests. 2012-08-15 02:05:03 -07:00
file_uploads [py3] Fixed file_uploads tests 2012-08-14 23:35:12 +02:00
fixtures_regress Fixed #18196 -- Improved loaddata error messages. 2012-08-21 21:52:25 +02:00
forms Fixed #18779 -- URLValidator can't validate url with ipv6. 2012-08-18 12:08:44 +01:00
generic_inline_admin Fixed the generic_inline_admin tests for python3. 2012-08-15 23:12:08 -04:00
generic_relations_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
generic_views Merge pull request #291 from uruz/ticket18793 2012-08-18 17:12:54 -07: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 #18678 -- HttpResponse init arguments allowed for subclasses 2012-08-23 10:59:22 +02:00
i18n Fixed #18798 -- Renamed conflicting test methods in i18n tests 2012-08-23 11:27:56 +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] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
inspectdb Fixed #18843 -- Replaced more special chars in column names (inspectdb) 2012-08-23 22:59:45 +02:00
introspection [py3] Fixed uses of __metaclass__ in tests. 2012-08-15 00:31:29 +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 [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
m2m_through_regress [py3] Fixed __unicode__ methods missed in d4a0b278 2012-08-17 14:11:23 +02:00
mail Explicitly close a file during the email tests. 2012-08-15 02:16:28 -07:00
managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
many_to_one_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +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] Fixed middleware tests. 2012-08-15 22:42:18 +02:00
middleware_exceptions Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
model_fields Fixed #18724 -- Fixed IntegerField validation with value 0 2012-08-06 10:42:21 +02:00
model_forms_regress [py3] Fixed uses of __metaclass__ in tests. 2012-08-15 00:31:29 +02:00
model_formsets_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_select_related [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +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 Revert "Fixed #18063 -- Avoid unicode in Model.__repr__ in python 2" 2012-08-22 11:48:47 +10:00
modeladmin Converted the modeladmin tests to run on python 2 and 3. 2012-08-15 01:46:31 -07:00
multiple_database Fixed #18306 -- Made deferred models issue update_fields on save 2012-08-12 22:39:27 +03:00
nested_foreign_keys Fixed #16715 -- Fixed join promotion logic for nested nullable FKs 2012-08-25 14:14:45 +03:00
null_fk [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_fk_ordering [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_queries [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
one_to_one_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
pagination_regress [py3k] Fixed pagination_regress tests. 2012-08-16 10:54:45 -04:00
queries Fixed #17886 -- Fixed join promotion in ORed nullable queries 2012-08-21 21:23:57 +03:00
queryset_pickle Fixed #17776 - DoesNotExist is not picklable 2012-06-22 13:28:15 +01:00
requests [py3] Used BytesIO to test request streams 2012-08-11 11:11:20 +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 [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
select_related_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
serializers_regress [py3] Fixed serializers tests 2012-08-14 19:54:53 +02:00
servers [py3] Fix some more encoding issues in tests 2012-08-15 17:41:38 +02:00
settings_tests Replaced deprecated TestCase methods. Refs #17049. 2012-05-03 16:39:16 +02:00
signals_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
signed_cookies_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
signing [py3] Made signing infrastructure pass tests with Python 3 2012-08-10 18:07:46 +02:00
sites_framework [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
special_headers Ensured tests pass using custom PASSWORD_HASHERS. 2012-04-30 22:10:27 +03:00
staticfiles_tests Explicitly close files in the staticfiles tests. 2012-08-15 01:25:01 -07:00
string_lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
syndication [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
templates [py3] Fixed templates tests. 2012-08-18 10:18:24 +02:00
test_client_regress [py3] Fixed test_client_regress tests 2012-08-15 10:58:26 +02:00
test_runner Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
test_utils [py3] Fixed test_utils tests of doctests. 2012-08-16 10:26:18 +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 Don't swallow AttributeError in core.urlresolvers.get_callable. 2012-08-14 21:23:25 +02:00
utils Reverted type check added in 62954ba04c. 2012-08-21 09:00:55 +02:00
version Fixed #18224 -- Changed the dev version number. 2012-04-29 13:40:10 +02:00
views [py3] Fix some more encoding issues in tests 2012-08-15 17:41:38 +02:00
wsgi [py3] Ported django.http according to PEP 3333. 2012-08-14 10:32:16 +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