Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/get_or_create
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-2/+7
| | | | on_delete for ForeignKey/OneToOneField
* Refs #22728 - Added missing tests for defaults__exact caseAndriy Sokolovskiy2015-06-052-0/+45
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+7
|
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-8/+6
|
* Fixed misplaced test case.Loic Bistuer2014-10-081-59/+59
|
* Fixed #23611 -- update_or_create failing from a related ↵Loic Bistuer2014-10-071-1/+52
| | | | | | | | manager Added update_or_create to RelatedManager, ManyRelatedManager and GenericRelatedObjectManager. Added missing get_or_create to GenericRelatedObjectManager.
* Consolidated get_or_create tests.Aymeric Augustin2014-04-212-9/+75
|
* Fixed flake8 warnings introduced in recent commits.Simon Charette2014-04-161-9/+8
|
* Refs #18586 - Refactored model get_or_create test.Liav Koren2014-04-151-27/+66
| | | | | Refactored get_or_create test into several smaller test functions across two different test classes. Also converted the comments over to docstrings.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-3/+6
|
* Removed unused local variables in tests.Tim Graham2013-10-191-3/+3
|
* Translated a test to English for consistency.Aymeric Augustin2013-09-221-1/+1
| | | | Also fixed a typo.
* Removed most of absolute_import importsClaude Paroz2013-07-291-2/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20429 -- Added QuerySet.update_or_createKarol Sikora2013-07-121-0/+65
| | | | Thanks tunixman for the suggestion and Loic Bistuer for the review.
* Defined available_apps in relevant tests.Aymeric Augustin2013-06-101-0/+2
| | | | Fixed #20483.
* Fixed #16137 - Removed kwargs requirement for ↵Tim Graham2013-05-272-1/+14
| | | | | | | QuerySet.get_or_create Thanks wilfred@, poirier, and charettes for work on the patch.
* Fixed get_or_create...test_savepoint_rollback test for ↵Shai Berger2013-05-261-1/+1
| | | | | | Python3 The test was always skipped on Python3 because string literals are unicode
* Fix get_or_create test failure under OracleShai Berger2013-05-261-1/+2
| | | | | Test expected that when given invalid utf-8, the backend should raise a DatabaseError, but the Oracle backend raises a UnicodeDecodeError.
* Fixed #20463 -- Made get_or_create more robust.Aymeric Augustin2013-05-221-1/+19
| | | | | | | When an exception other than IntegrityError was raised, get_or_create could fail and leave the database connection in an unusable state. Thanks UloPe for the report.
* Lower the max length for a test field so that it works ↵Alex Gaynor2013-05-191-1/+1
| | | | on MySQL.
* Fixes #18896. Add tests verifying that you can get ↵Pablo Recio2013-05-192-1/+35
| | | | IntegrityErrors using get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
* Tested that get_or_create raises IntegrityError.Aymeric Augustin2013-04-282-2/+19
| | | | | It used to raise "DatabaseError: no such savepoint" with the old transaction management. Closes #15117.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+92