summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2012-06-18Very start of schema alteration port. Create/delete model and some tests.Andrew Godwin
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-09Fixed #17159 -- Validated returned number of next|previous_page_numberClaude Paroz
Thanks mehta.apurva at gmail.com for the report and the initial patch and neaf for the complete patch.
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-07Added more precise assertions on two fixture tests.Claude Paroz
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-06Prevented TestNoInitialDataLoading to pollute other tests (Refs #15926)Claude Paroz
Tests were still failing with MySQL. It seems a rollback is solving the issue.
2012-06-06Fixed #18309 - Prefetch related does not work for fkey to multitable ↵Luke Plant
inherited model Thanks to milosu for the report, tests and initial patch.
2012-06-06Made TestNoInitialDataLoading pass with MySQL (Refs #15926)Claude Paroz
2012-06-05Fixed #15926 -- Added option --no-initial-data to syncdb and flush.Honza Kral
Thanks msiedlarek, jpaugh64 and vlinhart!
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-31Fixed #18407 -- Made model field's to_python methods fully accept unicode.Claude Paroz
When generating error message in to_python, any unicode string containing non-ascii characters triggered a UnicodeEncodeError for most field types.
2012-05-31Rewrote test_error_messages with helper test utility.Claude Paroz
2012-05-31Fixed #14681 -- Do not set mode to None on file-like objects.Claude Paroz
gzip.GzipFile does not support files with mode set to None.
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 #18387 -- Do not call sys.exit during call_command.Claude Paroz
Moved sys.exit(1) so as failing management commands reach it only when running from command line.
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-27Fixed #18343 -- Cleaned up deferred model implementationAnssi Kääriäinen
Generic cleanup and dead code removal in deferred model field loading and model.__reduce__(). Also fixed an issue where if an inherited model with a parent field chain parent_ptr_id -> id would be deferred loaded, then accessing the id field caused caused a database query, even if the id field's value is already loaded in the parent_ptr_id field.
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-26Fixed #5423 -- Made dumpdata output one row at a time.Claude Paroz
This should prevent storing all rows in memory when big sets of data are dumped. See ticket for heroic contributors.
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).