Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_utils
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-8/+21
|
* Fixed #23727 -- Inhibited the post_migrate signal when ↵Tommy Beadle2015-08-241-0/+28
| | | | | | | | | | | | | | | | | | | | | | | using serialized_rollback. When using a TransactionTestCase with serialized_rollback=True, after creating the database and running its migrations (along with emitting the post_migrate signal), the contents of the database are serialized to _test_serialized_contents. After the first test case, _fixture_teardown() would flush the tables but then the post_migrate signal would be emitted and new rows (with new PKs) would be created in the django_content_type table. Then in any subsequent test cases in a suite, _fixture_setup() attempts to deserialize the content of _test_serialized_contents, but these rows are identical to the rows already in the database except for their PKs. This causes an IntegrityError due to the unique constraint in the django_content_type table. This change made it so that in the above scenario the post_migrate signal is not emitted after flushing the tables, since it will be repopulated during fixture_setup().
* Fixed #25191 -- Added string diff to ↵Caio Ariede2015-08-041-0/+13
| | | | SimpleTestCase.assertXMLEqual() message.
* Refs #25176 -- Fixed typo in tests/test_utils/tests.pyTim Graham2015-08-011-1/+1
|
* Fixed #25176 -- Prevented TestCase.setUpTestData() ↵Adam Chainz2015-08-011-0/+33
| | | | exception from leaking transaction.
* Fixed #25188 -- Improved message raised by ↵Tim Graham2015-07-311-0/+14
| | | | | | SimpleTestCase.assertRaisesMessage(). Thanks Chris Jerdonek for the suggestion and help with the patch.
* Fixed #25190 -- Deprecated callable_obj parameter to ↵Tim Graham2015-07-301-2/+16
| | | | | | assertRaisesMessage(). Thanks Aymeric Augustin for review.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-2/+2
| | | | on_delete for ForeignKey/OneToOneField
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-7/+7
|
* Fixed #24652 -- Disallowed query execution in ↵Simon Charette2015-05-201-0/+18
| | | | | | SimpleTestCase subclasses. Thanks to Tim and Anssi for the review.
* Added backwards compatibility for assertRaisesMessage ↵Tim Graham2015-05-181-0/+6
| | | | | | callable_obj param. This was broken in c2bc1cefdcbbf074408f4a4cace88b315cf9d652 (refs #23763).
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-3/+4
|
* Fixed #24197 -- Added clearing of staticfiles caches on ↵mlavin2015-02-041-0/+56
| | | | | | | settings changes during tests Cleared caching in staticfiles_storage and get_finder when relevant settings are changed.
* Fixed typo in test_utils comment.Tim Graham2014-12-241-1/+1
|
* Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) ↵wrwrwr2014-12-011-1/+9
| | | | affect the master router.
* Fixed #23300 -- Made assertTemplateUsed throw an error ↵Davide Ceretti2014-11-031-0/+12
| | | | | | on responses not fetched using the test client. Thanks zags for the report and bmispelon for the patch.
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-9/+9
| | | | Django test suite.
* Avoided using private API get_template_from_string.Aymeric Augustin2014-10-311-2/+2
|
* Fixed #23600 -- Made default_storage aware of more ↵Duncan Parkes2014-10-091-0/+39
| | | | | | | settings changes. Added MEDIA_URL, FILE_UPLOAD_PERMISSIONS, and FILE_UPLOAD_DIRECTORY_PERMISSIONS to the list of settings.
* Fixed flake8 warnings.Tim Graham2014-09-301-0/+3
|
* Fixed #23567 -- Made assertQuerysetEqual check Counter ↵Thomas Chaumeny2014-09-292-1/+43
| | | | equality when ordered=False
* Allowed skipIf/UnlessDBFeature to accept several feature ↵Claude Paroz2014-08-261-2/+59
| | | | strings
* Fixed #22572 -- override_settings(ROOT_URLCONF) didn't ↵Loic Bistuer2014-05-052-15/+32
| | | | | | clear urlresolvers._urlconfs. Thanks Anubhav Joshi and Tim Graham for the reviews.
* Fixed #22465 -- New assertion assertJSONNotEqualamatellanes2014-04-181-0/+45
|
* Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of ↵chriscauley2014-04-171-1/+1
| | | | | | docs and tests. Thanks tomwys for the suggestion.
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-4/+4
|
* Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham2014-04-032-8/+8
| | | | Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
* Removed django.test.simple and django.test._doctest per ↵Tim Graham2014-03-212-88/+1
| | | | | | deprecation timeline. refs #17365, #17366, #18727.
* Fixed #21518 -- Made override_settings(ROOT_URLCONF) ↵Chris Wilson2014-02-071-1/+33
| | | | | | clear the resolver cache. Thanks Aymeric Augustin and Simon Charette for reviews.
* Fixed #21462 -- Made `assertNumQueries` print executed ↵Dominic Rodger2013-12-111-0/+1
| | | | queries on failure.
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-3/+1
|
* Flake8 fix -- correct number of newlines between top ↵Alex Gaynor2013-11-081-0/+1
| | | | level definitions
* Fixed #17529 -- get_template_from_string default ↵Unai Zalakain2013-11-083-0/+13
| | | | | | | | | | arguments break ``get_template_from_string`` default arguments were breaking ``assertTemplateUsed``. The solution has been to return only the names of the templates with a ``name`` attribute distinct of ``None``. The default ``name`` kwarg of ``Template`` has been changed to ``None``, more pythonic than ``'<Unknown Template>'``.
* Fixing E302 ErrorsJason Myers2013-11-031-0/+1
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed all the E203 violationsAlex Gaynor2013-10-271-1/+1
|
* Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol2013-10-181-3/+3
|
* Removed unnecessary semicolons.Tim Graham2013-10-101-1/+1
|
* Partial revert of 165f44aa.Aymeric Augustin2013-09-221-32/+39
| | | | | | That commit didn't always improve readability. See discussion on django-developers for details.
* Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin2013-09-021-1/+1
|
* Combine consecutive with statementsClaude Paroz2013-08-161-39/+32
| | | | Python 2.7 allows to combine several 'with' instructions.
* Removed most of absolute_import importsClaude Paroz2013-07-293-6/+2
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #18551 -- Enabled ↵Claude Paroz2013-07-191-3/+25
| | | | | | skipIfDBFeature/skipUnlessDBFeature to decorate a class Thanks Tim Graham for the review and improved patch.
* Removed tests for django.utils.unittest vs. unittest.Aymeric Augustin2013-07-011-2/+2
| | | | | | | | Silenced warnings caused by the deprecation of django.utils.unittest. Thanks Preston Timmons and Carl Meyer for their advice. Fixed #20680.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-2/+3
| | | | Refs #20680.
* Advanced deprecation warnings for Django 1.7.Aymeric Augustin2013-06-291-2/+2
|
* More import removalsClaude Paroz2013-06-291-1/+0
| | | | | | Following the series of commits removing deprecated features in Django 1.7, here are some more unneeded imports removed and other minor cleanups.
* Removed warnings level handling code as per deprecation TL.Ramiro Morales2013-06-291-31/+0
|
* Fixed #20548 -- Removed all PendingDeprecationWarnings ↵Marc Tamlyn2013-06-141-3/+3
| | | | from django test suite
* Used a Python 3 compatible StringIO in test_utilsClaude Paroz2013-04-131-2/+1
|
* Modified test_utils to work with unittest2 discovery.Preston Timmons2013-04-122-76/+87
|