summaryrefslogtreecommitdiff
path: root/tests/get_or_create
AgeCommit message (Collapse)Author
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-10-08Fixed misplaced test case.Loic Bistuer
2014-10-08Fixed #23611 -- update_or_create failing from a related managerLoic Bistuer
Added update_or_create to RelatedManager, ManyRelatedManager and GenericRelatedObjectManager. Added missing get_or_create to GenericRelatedObjectManager.
2014-04-21Consolidated get_or_create tests.Aymeric Augustin
2014-04-16Fixed flake8 warnings introduced in recent commits.Simon Charette
2014-04-14Refs #18586 - Refactored model get_or_create test.Liav Koren
Refactored get_or_create test into several smaller test functions across two different test classes. Also converted the comments over to docstrings.
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-10-19Removed unused local variables in tests.Tim Graham
2013-09-22Translated a test to English for consistency.Aymeric Augustin
Also fixed a typo.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-12Fixed #20429 -- Added QuerySet.update_or_createKarol Sikora
Thanks tunixman for the suggestion and Loic Bistuer for the review.
2013-06-10Defined available_apps in relevant tests.Aymeric Augustin
Fixed #20483.
2013-05-27Fixed #16137 - Removed kwargs requirement for QuerySet.get_or_createTim Graham
Thanks wilfred@, poirier, and charettes for work on the patch.
2013-05-26Fixed get_or_create...test_savepoint_rollback test for Python3Shai Berger
The test was always skipped on Python3 because string literals are unicode
2013-05-26Fix get_or_create test failure under OracleShai Berger
Test expected that when given invalid utf-8, the backend should raise a DatabaseError, but the Oracle backend raises a UnicodeDecodeError.
2013-05-22Fixed #20463 -- Made get_or_create more robust.Aymeric Augustin
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.
2013-05-19Lower the max length for a test field so that it works on MySQL.Alex Gaynor
2013-05-19Fixes #18896. Add tests verifying that you can get IntegrityErrors using ↵Pablo Recio
get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
2013-04-28Tested that get_or_create raises IntegrityError.Aymeric Augustin
It used to raise "DatabaseError: no such savepoint" with the old transaction management. Closes #15117.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner