summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2012-06-19Fixed #14502 again -- saner verbatim closing tokenChris Beaven
Previously, the closing token for the verbatim tag was specified as the first argument of the opening token. As pointed out by Jannis, this is a rather major departure from the core tag standard. The new method reflects how you can give a specific closing name to {% block %} tags.
2012-06-14Fixed #12140 -- Fixed http.urlencode result for empty listsClaude Paroz
Thanks aneil for the report and the initial patch.
2012-06-13Removed escaping test of query contentClaude Paroz
As the content of last_executed_query() is not under Django's control for most backends, it is useless to test too specific aspects of it.
2012-06-13Fixed connection.queries encoding handling on OracleAnssi Kääriäinen
In addition, removed a possibly problematic .filter() call from backends.test_query_encoding test. It is possible the .filter could cause collation problems on MySQL, and as it wasn't absolutely needed for the test it seemed better to get rid of the call. Refs #18461.
2012-06-13Fixed #18461 -- Ensured that last_executed_query returns UnicodeClaude Paroz
Thanks Anssi Kääriäinen for the review.
2012-06-12Added missing encoding prefix in localflavor testClaude Paroz
2012-06-12Cleaned up locale-related encoding issuesClaude Paroz
2012-06-11Fixed #18463 -- Forced type() argument to be a byte stringClaude Paroz
2012-06-09Removed test of connection features before setting up databasesClaude Paroz
2012-06-09Reverted 905e33f, now that DatabaseFeatures does not need confirmClaude Paroz
Connection.features does not need to be confirmed any more, after commit aa42357, rendering obsolete the workaround when using TEST_MIRROR (Refs #16885, #17760).
2012-06-09Fixed #17760 -- Implemented callable database features as cached propertiesClaude Paroz
This does remove the requirement to call features.confirm() method before checking the properties. Thanks cdestiger and Ramiro Morales for their work on the patch.
2012-06-09Fixed #16418 -- Made generic views work with ModelFormsAnssi Kääriäinen
Generic views assumed any object's _meta will be model Options. This is not true for ModelForms for example. Took isinstance(obj, Model) in use instead.
2012-06-08Merge pull request #123 from apollo13/ticket18381Aymeric Augustin
Fixed #18381 -- Stopped escaping object ids when passing them to the contenttypes.shortcut view. Thanks apollo13 for the patch and dhepper for the review.
2012-06-07Fixed #18433 -- Fixed "View on Site" link in inline admin for models with ↵Daniel Hepper
custom PK
2012-06-07Fixed #18432 -- Prevented the ForeignKey field from creating an invalid ↵Jann Kleen
query when chained. Thanks, Jann Kleen.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-07Don't escape object ids when passing to the contenttypes.shortcut view.Florian Apolloner
This commit also changes the string pk to string_pk instead of id, to test if the admin uses .pk throughout the codebase.
2012-06-07Fixed #10200 -- Raised CommandError when errors happen in loaddata.Claude Paroz
2012-06-07Fixed #14502 -- Added a verbatim template tag.Aymeric Augustin
Thanks SmileyChris for the patch.
2012-06-03Fixed #17138 -- Made the sensitive_variables decorator work with object methods.Julien Phalip
2012-06-03Changed FilePathField tests to use it's own directory with test files.Honza Kral
In previous version it used /django/forms/ which was fragile - for some users .pyc files were not generated and this tests failed.
2012-06-03Unittest2 style assertTrue instead of assert_Honza Kral
2012-06-03Fixed incorrect assert in test_filepathfield_foldersHonza Kral
2012-06-02Fixed override_settings usage in test_client_regressClaude Paroz
2012-06-02Fixed settings override in mail regression testsClaude Paroz
self.settings_override from test subclasses were overwriting parent attribute.
2012-06-01Removed debugging code added in last commit.Ramiro Morales
2012-06-01Made inspectdb tests deal with a smaller generated models.py file.Ramiro Morales
Implemented this by adding a stealth table_name_filter option for the command.
2012-05-31Fixed #18409 -- Made RegexField work with unicode characters.Julien Phalip
2012-05-31Cleaned up test_client_regress testsClaude Paroz
2012-05-31Moved test_client_regress tests from models.py to tests.pyClaude Paroz
2012-05-28Fixed #18393 -- Prevented blocktrans to crash when a variable name is badly ↵Julien Phalip
formatted.
2012-05-28Used call_command stdout parameter to capture output in staticfiles tests.Claude Paroz
2012-05-27Used call_command in i18n compilation tests.Claude Paroz
Now that call_command does not raise SystemExit any more, we can use call_command again for testing compilemessages.
2012-05-27Used CommandError in createcachetable command.Claude Paroz
Raising CommandError whenever a management command meets an error condition is the standard way to handle errors in commands.
2012-05-27Fixed #18135 -- Close connection used for db version checkingMichael Newman
On MySQL when checking the server version, a new connection could be created but never closed. This could result in open connections on server startup.
2012-05-26Removed a duplicate test in fixtures_regress.Claude Paroz
test_abort_loaddata_on_error was exactly the same test as test_empty (error is tested in test_error_message).
2012-05-25Specified when open should use binary mode.Claude Paroz
Thanks Vinaj Sajip for the help of his django3 branch.
2012-05-25Fixed #17371 -- Made the test client more flexibleAymeric Augustin
The OPTIONS, PUT and DELETE methods no longer apply arbitrary data encoding (in the query string or in the request body).
2012-05-25Added tests for nested exclude/negate queriesAnssi Kääriäinen
2012-05-24Fixed qs.order_by() join promotion for already existing joinsAnssi Kääriäinen
When order_by causes new joins to be added to the query, the joins must be LEFT OUTER joins for nullable relations, otherwise the order_by could cause the results to be altered. This commit fixes the logic to only promote new joins, previously all joins in the order_by lookup path were promoted. Thanks to Bruno Desthuilliers for spotting this corner case.
2012-05-24Fixed #18353 -- Inconsistency in date-based CBVs.Aymeric Augustin
2012-05-22Fixed #18319 -- Added 'supports_sequence_reset' DB featureAnssi Kääriäinen
Added a new feature to allow 3rd party backends to skip tests which test sequence resetting. Thanks to manfre for report and patch.
2012-05-22Fixed #18318 -- Changed some tests to be 3rd party DB friendlyAnssi Kääriäinen
Thanks to manfre for report and patch.
2012-05-22Fixed #18317 -- Removed db specific raw SQL function from testsAnssi Kääriäinen
A test in model_fields used LEN() in raw SQL. This function is not available on some 3rd party backends. I removed this function and ensured that the test works correctly (breaks pre e9bbdb39de) with the change.
2012-05-20Fixed #18354 -- Performance issue in CBV.Aymeric Augustin
Prevented repeating a query twice when the model isn't ordered by -date_field (in Meta), allow_empty is False and pagination isn't enabled.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-18Fixed broken ES localflavor test after 4774875.Claude Paroz
2012-05-18Fixed #18334 -- Fixed detection of supports_stddev backend feature.Claude Paroz
Thanks to Michael Manfre for the report and Anssi Kääriäinen for the review.
2012-05-17Added a test for DayArchiveView. Refs #17192.Aymeric Augustin
2012-05-17Fixed #9893 -- Validated the length of file namesAymeric Augustin
after the full file name is generated by the storage class. Thanks Refefer for the report, carsongee for the patch, and everyone else involved in the discussion.