Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/backends
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #21202 -- Maintained atomicity when the server ↵Aymeric Augustin2014-04-101-7/+0
| | | | | | | | | | | disconnects. Thanks intgr for the report. This commit doesn't include a test because I don't know how to emulate a database disconnection in a cross-database compatible way. Also simplified a 'backends' test that was constrained by this problem.
* Fixed #21553 -- Ensured unusable database connections ↵Aymeric Augustin2014-04-091-0/+31
| | | | get closed.
* Used more specific test assertions.Aymeric Augustin2014-04-091-2/+2
|
* Added test to confirm #12583 resolutionClaude Paroz2014-03-311-1/+15
|
* Removed legacy transaction management per the ↵Aymeric Augustin2014-03-211-1/+1
| | | | deprecation timeline.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-5/+5
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #17713 -- Renamed ↵Vajrasky Kok2014-02-061-3/+2
| | | | | | | | | BaseDatabaseFeatures.allows_primary_key_0 to allows_auto_pk_0. MySQL does allow primary key with value 0. It only forbids autoincrement primary key with value 0. Thanks Claude Paroz for the report.
* Fixed typo in 3ffeb931.Aymeric Augustin2014-02-021-1/+1
|
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-22/+28
| | | | | | This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
* Made SQLCompiler.execute_sql(result_type) more explicit.Michael Manfre2014-02-021-1/+2
| | | | | | | | | | Updated SQLUpdateCompiler.execute_sql to match the behavior described in the docstring; the 'first non-empty query' will now include all queries, not just the main and first related update. Added CURSOR and NO_RESULTS result_type constants to make the usages more self documenting and allow execute_sql to explicitly close the cursor when it is no longer needed.
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-3/+5
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Fixed a test that was failing with PostGIS.Aymeric Augustin2014-01-121-1/+1
| | | | | | Fixed #21452 again. Forward-port of 18d75e07 from stable/1.6.x.
* Restored a test broken by overzealous PEP8 cleanupAymeric Augustin2014-01-121-0/+2
|
* Fixed flake8 issues.Simon Charette2014-01-121-1/+0
|
* Fixed #21452 -- Non-autocommit connections to PostgreSQL.Aymeric Augustin2014-01-121-4/+19
| | | | | | | | | When settings.DATABASES['default']['AUTOCOMMIT'] = False, the connection wasn't in autocommit mode but Django pretended it was. Thanks Anssi for analysing this issue. Refs #17062.
* Fixed a test isolation issue. Refs #17062.Aymeric Augustin2014-01-121-6/+9
| | | | | This test could change settings.DATABASES['default']['TIME_ZONE'] and didn't restore the previous value.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-3/+3
|
* PEP8 cleanupJason Myers2013-11-031-8/+10
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed E225 pep8 warnings.Tim Graham2013-10-231-2/+2
|
* Fixed #21187 -- Import CursorWrapper from ↵Anssi Kääriäinen2013-09-281-3/+1
| | | | | | | django.db.backend.utils The import was done from util instead of utils leading to PendingDeprecationWarning.
* Fixed #17671 - Cursors are now context managers.Michael Manfre2013-09-251-0/+25
|
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-1/+1
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Fixed this syntax error on py32Alex Gaynor2013-09-071-1/+1
|
* Fixed #20007 -- Configured psycopg2 to return UnicodeArraysEric Boersma2013-09-071-0/+20
| | | | Thanks hogbait for the report.
* Fixed #10164 -- Made AutoField increase monotonically on ↵Chris Wilson2013-09-061-0/+20
| | | | | | SQLite Thanks malte for the report.
* Fixed #21035 -- Changed docs to treat the acronym SQL ↵Eric Boersma2013-09-061-1/+1
| | | | | | | phonetically. The documentation and comments now all use 'an' to refer to the word SQL and not 'a'.
* Fixed #20989 -- Removed useless explicit list ↵Simon Charette2013-08-301-1/+1
| | | | comprehensions.
* Fixed #17519 -- Fixed missing SQL constraints to proxy ↵Tim Graham2013-08-022-10/+36
| | | | | | | models. Thanks thibaultj for the report, jenh for the patch, and charettes for the tests.
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Avoided transaction.set_autocommit in tests.Aymeric Augustin2013-07-091-23/+10
| | | | | | It doesn't work as one might expect on a certain database backend where autocommits_when_autocommit_is_off = True. That backend happens to be popular for running tests.
* Fixed a few more imports of django.utils.unittest.Aymeric Augustin2013-07-011-3/+4
| | | | One import per line please! Refs #20680.
* Fixed #18592 -- Prevented crash when accessing MySQL ↵Claude Paroz2013-06-291-0/+11
| | | | | | _last_executed Thanks reames at asymmetricventures.com for the report.
* Support 'pyformat' style parameters in raw queries, Refs ↵Shai Berger2013-06-281-2/+42
| | | | | | | | | | #10070 Add support for Oracle, fix an issue with the repr of RawQuerySet, add tests and documentations. Also added a 'supports_paramstyle_pyformat' database feature, True by default, False for SQLite. Thanks Donald Stufft for review of documentation.
* Fixed #20587 -- Made convert_values handle None valuesGilberto Gonçalves2013-06-221-1/+36
|
* Defined available_apps in relevant tests.Aymeric Augustin2013-06-101-0/+7
| | | | Fixed #20483.
* Fixed #20474 -- Proxied and deprecated django.db.backendClaude Paroz2013-05-231-3/+6
|
* Use assertIsInstance in tests.Marc Tamlyn2013-05-211-1/+1
| | | | Gives much nicer errors when it fails.
* Fixed #20388 -- Test failures under Oracle.Shai Berger2013-05-161-2/+7
| | | | Add "FROM DUAL" to SQL selecting constants in tests for Oracle.
* Fixed #19220 -- Prevented decimals to be displayed in ↵Claude Paroz2013-03-311-0/+41
| | | | | | scientific notation Thanks nebstrebor for the report and antofik for the patch.
* Fixed #19954 -- Fixed MySQL _last_executed decodingClaude Paroz2013-03-282-5/+6
| | | | | | | Queries can contain binary data undecodable with utf-8. In this case, using the 'replace' errors mode when decoding seems like an acceptable representation of the query. Thanks Marcel Ryser for the report.
* Fixed #9055 -- Standardized behaviour of parameter ↵Claude Paroz2013-03-231-4/+20
| | | | | | | | | | | | escaping in db cursors Previously, depending on the database backend or the cursor type, you'd need to double the percent signs in the query before passing it to cursor.execute. Now cursor.execute consistently need percent doubling whenever params argument is not None (placeholder substitution will happen). Thanks Thomas Güttler for the report and Walter Doekes for his work on the patch.
* Ran a test that closes the database connection outside ↵Aymeric Augustin2013-03-111-4/+6
| | | | of a transaction.
* Improved the API of set_autocommit.Aymeric Augustin2013-03-111-6/+6
|
* Added some assertions to enforce the atomicity of atomic.Aymeric Augustin2013-03-111-3/+12
|
* Enabled autocommit for PostgreSQL.Aymeric Augustin2013-03-111-2/+2
| | | | | | | | | For users who didn't activate autocommit in their database options, this is backwards-incompatible in "non-managed" aka "auto" transaction state. This state now uses database-level autocommit instead of ORM-level autocommit. Also removed the uses_autocommit feature which lost its purpose.
* Added a ManyToManyField(db_constraint=False) option, ↵Alex Gaynor2013-03-072-14/+38
| | | | this allows not creating constraints on the intermediary models.
* Fixed a test that relied on database exceptions not ↵Aymeric Augustin2013-02-271-2/+2
| | | | being wrapped.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+849