summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2012-07-25Fixed #18634 -- Don't escape variables in the context for startproject/startapp.Marc Tamlyn
The & symbols which can come up in the secret key were being escaped to &.
2012-07-25Merge pull request #216 from ljosa/ticket_18644Florian Apolloner
Fixed #18644 -- Made urlize trim trailing period followed by parenthesis
2012-07-25Made staticfiles tests independent of test execution order.Florian Apolloner
2012-07-24Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.Ramiro Morales
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-24Added tests for deprecation warnings and fixed the argument order for the ↵Alex Gaynor
warnings.
2012-07-22[py3] Added Python 3 compatibility for xrange.Aymeric Augustin
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-22[py3] Fixed remaining Python 3 syntax errors.Aymeric Augustin
django.utils.unittest.* weren't touched -- they're only imported on Python 2.6.
2012-07-22[py3] Removed longs.Aymeric Augustin
2012-07-21Fixed #10057 -- Ensured that the 'show_delete' context variable in the ↵Julien Phalip
admin's change view actually controls the display of the delete button. Thanks to rajeesh for the report, to patcoll for the patch, and to David Gouldin for the test.
2012-07-21Fixed #6170 -- Ensured that a useful exception is raised when a regex is ↵Julien Phalip
invalid in the URLConf. Thanks to abrahamson.j for the report, to guettli for initial work on the patch, and to David Gouldin for the new patch and test.
2012-07-21Re-added Windows line ending stripped in previous commitClaude Paroz
Thanks Aymeric Augustin for noticing the issue.
2012-07-21Fixed #4680 -- Improved initial_sql parsingClaude Paroz
In particular, allow the '--' sequence to be present in string values without being interpreted as comment marker. Thanks Tim Chase for the report and shaleh for the initial patch.
2012-07-20Switched to Python 3-compatible octal notation.Aymeric Augustin
2012-07-20Removed u prefixes on unicode strings.Aymeric Augustin
They break Python 3.
2012-07-18Fixed #18479 -- Stopped makemessages raising error on gettext warningsClaude Paroz
Thanks Niels Busch for the initial patch.
2012-07-18BaseCache now has a no-op close method as per ticket #18582Mike Grouchy
Also removed the hasattr check when firing request_finished signal for caches with a 'close' method. Should be safe to call `cache.close` everywhere now
2012-07-17Fixed #18561 -- Made HttpResponse.tell() support non-ascii charsClaude Paroz
2012-07-17Fixed #18644 -- Made urlize trim trailing period followed by parenthesisVebjorn Ljosa
2012-07-17Fixed #17788 -- Added batch_size argument to qs.bulk_create()Anssi Kääriäinen
The qs.bulk_create() method did not work with large batches together with SQLite3. This commit adds a way to split the bulk into smaller batches. The default batch size is unlimited except for SQLite3 where the batch size is limited to 999 SQL parameters per batch. Thanks to everybody who participated in the discussions at Trac.
2012-07-15Avoid using a column named "date" in testsAnssi Kääriäinen
Oracle can have problems with such columns. Fixed #17932 again. Thanks to Vinay Sajip for the report.
2012-07-14Remove DotExpandedDict, which was undocumented and unused.Alex Gaynor
2012-07-14Cleaned up the QueryDict implementation.Alex Gaynor
- Use super(). - Don't poke at internals. - Don't override methods for no reason.
2012-07-09Added supplementary check for CUIT number of ar localflavorClaude Paroz
Thanks Kevin Schaul for the initial patch.
2012-07-09Fixed #18537 -- Fixed CUIT calculation in ar localflavorClaude Paroz
Thanks mmoya at 8ksoft.com.ar for the report and Kevin Shaul for the initial patch.
2012-07-08Fixed #18487 -- Made sure that protocol-relative URLs aren't processed by ↵Jannis Leidel
the cached staticfiles storage. Thanks to LukaszBalcerzak for the patch.
2012-07-08Fixed #18050 -- Fixed a rather glaring bug in the handling of @import ↵Jannis Leidel
statements when using the cached staticfiles storage.
2012-07-08Fixed #18430 -- Use the FILE_CHARSET setting when reading from a file during ↵Jannis Leidel
post processing with the cached staticfiles storage. Thanks to Brant Young for initial debugging.
2012-07-07Fixed #18254 -- Added ability to the static template tags to store the ↵Jannis Leidel
result in a contextt variable. Many thanks to Andrei Antoukh for the initial patch.
2012-07-06Used skipIf decorator to skip image tests when PIL is not availableClaude Paroz
2012-07-03Removed various unnecessary instances of mark_safe applied to URLsLuke Plant
Also fixed some test breakages introduced in last commit
2012-07-03Added 'format_html' utility for formatting HTML fragments safelyLuke Plant
2012-07-03Stylistic cleanup of Postgres autocommit testsAnssi Kääriäinen
Cleaned up tests introduced in f572ee0c65ec5eac9edb0cb3e35c96ec86d89ffb. Thanks to Claude Paroz for suggesting the changes.
2012-07-01Fixed #18550 -- Ensured that the admin history view works with escaped ↵Julien Phalip
primary keys. Thanks to josh.oosterman for the report and patch.
2012-07-01Fixed a regression introduced in where.as_sql() refactorAnssi Kääriäinen
At least Oracle needs parentheses in negated where conditions, even if there is only single condition negated. Fixed this by reverting to old logic in that part of as_sql() and adding a comment about this. I did not investigate why the parentheses are needed. The original offending commit was bd283aa844b04651b7c8b4e85f48c6dced1678f0.
2012-07-01Fixed #16047 -- Restore autocommit state correctly on psycopg2Anssi Kääriäinen
When the postgresql_psycopg2 backend was used with DB-level autocommit mode enabled, after entering transaction management and then leaving it, the isolation level was never set back to autocommit mode. Thanks brodie for report and working on this issue.
2012-07-01Refactored the empty/full result logic in WhereNode.as_sql()Anssi Kääriäinen
Made sure the WhereNode.as_sql() handles various EmptyResultSet and FullResultSet conditions correctly. Also, got rid of the FullResultSet exception class. It is now represented by '', [] return value in the as_sql() methods.
2012-06-30Removed usage of mimetype kwarg of HttpResponseClaude Paroz
Refs #16519.
2012-06-30Fixed #18102 -- Defined min/max_length on French localflavor form fieldsClaude Paroz
Thanks mothsART for the report and the initial patch.
2012-06-28Fixed #15197 -- Fixed yaml serialization into HttpResponseClaude Paroz
Thanks fourga38 for the report and hirokiky at gmail.com for the initial patch.
2012-06-26Fixed #18465 -- Set date formats correctly on OracleJosh Smeaton
Correctly configure NLS_SESSION_PARAMETERS to format Date and DateTime on Oracle backend. Thanks to Josh Smeaton for report & patch.
2012-06-26Fixed #18515 -- Conditionally regenerated filename in FileField validationClaude Paroz
When a FileField value has been saved, a new validation should not regenerate a new filename when checking the length. Refs #9893.
2012-06-26Fixed #17485 -- Made defer work with select_relatedAnssi Kääriäinen
This commit tackles a couple of issues. First, in certain cases there were some mixups if field.attname or field.name should be deferred. Field.attname is now always used. Another issue tackled is a case where field is both deferred by .only(), and selected by select_related. This case is now an error. A lot of thanks to koniiiik (Michal Petrucha) for the patch, and to Andrei Antoukh for review.
2012-06-24Fixed #16317 -- Fixed dumpdata for self-referencing models and natural keysClaude Paroz
Thanks aldaran for the patch.
2012-06-23Switch to using context managers for acquiring and releasing locks.Alex Gaynor
2012-06-23Fixed #18454 -- Added ability to pass a list of signals to `receiver`.Dmitry Medvinsky
Added ability to use receiver decorator in the following way: @receiver([post_save, post_delete], sender=MyModel) def signals_receiver(sender, **kwargs): ...
2012-06-22Fixed #17776 - DoesNotExist is not picklableLuke Plant
Thanks to ambv for the report
2012-06-19Removed unneeded u prefixesClaude Paroz