Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #23395 -- Limited line lengths to 119 characters. | Dražen Odobašić | 2015-09-12 | 1 | -8/+21 |
| | |||||
* | Fixed #23727 -- Inhibited the post_migrate signal when ↵ | Tommy Beadle | 2015-08-24 | 1 | -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 Ariede | 2015-08-04 | 1 | -0/+13 |
| | | | | SimpleTestCase.assertXMLEqual() message. | ||||
* | Refs #25176 -- Fixed typo in tests/test_utils/tests.py | Tim Graham | 2015-08-01 | 1 | -1/+1 |
| | |||||
* | Fixed #25176 -- Prevented TestCase.setUpTestData() ↵ | Adam Chainz | 2015-08-01 | 1 | -0/+33 |
| | | | | exception from leaking transaction. | ||||
* | Fixed #25188 -- Improved message raised by ↵ | Tim Graham | 2015-07-31 | 1 | -0/+14 |
| | | | | | | SimpleTestCase.assertRaisesMessage(). Thanks Chris Jerdonek for the suggestion and help with the patch. | ||||
* | Fixed #25190 -- Deprecated callable_obj parameter to ↵ | Tim Graham | 2015-07-30 | 1 | -2/+16 |
| | | | | | | assertRaisesMessage(). Thanks Aymeric Augustin for review. | ||||
* | Fixed #21127 -- Started deprecation toward requiring ↵ | Flavio Curella | 2015-07-28 | 1 | -2/+2 |
| | | | | on_delete for ForeignKey/OneToOneField | ||||
* | Refs #24652 -- Used SimpleTestCase where appropriate. | Simon Charette | 2015-05-20 | 1 | -7/+7 |
| | |||||
* | Fixed #24652 -- Disallowed query execution in ↵ | Simon Charette | 2015-05-20 | 1 | -0/+18 |
| | | | | | | SimpleTestCase subclasses. Thanks to Tim and Anssi for the review. | ||||
* | Added backwards compatibility for assertRaisesMessage ↵ | Tim Graham | 2015-05-18 | 1 | -0/+6 |
| | | | | | | callable_obj param. This was broken in c2bc1cefdcbbf074408f4a4cace88b315cf9d652 (refs #23763). | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 2 | -3/+4 |
| | |||||
* | Fixed #24197 -- Added clearing of staticfiles caches on ↵ | mlavin | 2015-02-04 | 1 | -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 Graham | 2014-12-24 | 1 | -1/+1 |
| | |||||
* | Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) ↵ | wrwrwr | 2014-12-01 | 1 | -1/+9 |
| | | | | affect the master router. | ||||
* | Fixed #23300 -- Made assertTemplateUsed throw an error ↵ | Davide Ceretti | 2014-11-03 | 1 | -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 Peksag | 2014-11-03 | 1 | -9/+9 |
| | | | | Django test suite. | ||||
* | Avoided using private API get_template_from_string. | Aymeric Augustin | 2014-10-31 | 1 | -2/+2 |
| | |||||
* | Fixed #23600 -- Made default_storage aware of more ↵ | Duncan Parkes | 2014-10-09 | 1 | -0/+39 |
| | | | | | | | settings changes. Added MEDIA_URL, FILE_UPLOAD_PERMISSIONS, and FILE_UPLOAD_DIRECTORY_PERMISSIONS to the list of settings. | ||||
* | Fixed flake8 warnings. | Tim Graham | 2014-09-30 | 1 | -0/+3 |
| | |||||
* | Fixed #23567 -- Made assertQuerysetEqual check Counter ↵ | Thomas Chaumeny | 2014-09-29 | 2 | -1/+43 |
| | | | | equality when ordered=False | ||||
* | Allowed skipIf/UnlessDBFeature to accept several feature ↵ | Claude Paroz | 2014-08-26 | 1 | -2/+59 |
| | | | | strings | ||||
* | Fixed #22572 -- override_settings(ROOT_URLCONF) didn't ↵ | Loic Bistuer | 2014-05-05 | 2 | -15/+32 |
| | | | | | | clear urlresolvers._urlconfs. Thanks Anubhav Joshi and Tim Graham for the reviews. | ||||
* | Fixed #22465 -- New assertion assertJSONNotEqual | amatellanes | 2014-04-18 | 1 | -0/+45 |
| | |||||
* | Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of ↵ | chriscauley | 2014-04-17 | 1 | -1/+1 |
| | | | | | | docs and tests. Thanks tomwys for the suggestion. | ||||
* | Fixed #21977 -- Deprecated SimpleTestCase.urls | Anubhav Joshi | 2014-04-06 | 1 | -4/+4 |
| | |||||
* | Fixed #22218 -- Deprecated django.conf.urls.patterns. | Tim Graham | 2014-04-03 | 2 | -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 Graham | 2014-03-21 | 2 | -88/+1 |
| | | | | | | deprecation timeline. refs #17365, #17366, #18727. | ||||
* | Fixed #21518 -- Made override_settings(ROOT_URLCONF) ↵ | Chris Wilson | 2014-02-07 | 1 | -1/+33 |
| | | | | | | clear the resolver cache. Thanks Aymeric Augustin and Simon Charette for reviews. | ||||
* | Fixed #21462 -- Made `assertNumQueries` print executed ↵ | Dominic Rodger | 2013-12-11 | 1 | -0/+1 |
| | | | | queries on failure. | ||||
* | Fixed E124 pep8 warnings. | Loic Bistuer | 2013-12-10 | 1 | -3/+1 |
| | |||||
* | Flake8 fix -- correct number of newlines between top ↵ | Alex Gaynor | 2013-11-08 | 1 | -0/+1 |
| | | | | level definitions | ||||
* | Fixed #17529 -- get_template_from_string default ↵ | Unai Zalakain | 2013-11-08 | 3 | -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 Errors | Jason Myers | 2013-11-03 | 1 | -0/+1 |
| | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com> | ||||
* | Fixed all the E203 violations | Alex Gaynor | 2013-10-27 | 1 | -1/+1 |
| | |||||
* | Fixed #21285 -- Fixed E121,E122 pep8 warnings | Alasdair Nicol | 2013-10-18 | 1 | -3/+3 |
| | |||||
* | Removed unnecessary semicolons. | Tim Graham | 2013-10-10 | 1 | -1/+1 |
| | |||||
* | Partial revert of 165f44aa. | Aymeric Augustin | 2013-09-22 | 1 | -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 Augustin | 2013-09-02 | 1 | -1/+1 |
| | |||||
* | Combine consecutive with statements | Claude Paroz | 2013-08-16 | 1 | -39/+32 |
| | | | | Python 2.7 allows to combine several 'with' instructions. | ||||
* | Removed most of absolute_import imports | Claude Paroz | 2013-07-29 | 3 | -6/+2 |
| | | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way. | ||||
* | Fixed #18551 -- Enabled ↵ | Claude Paroz | 2013-07-19 | 1 | -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 Augustin | 2013-07-01 | 1 | -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 Augustin | 2013-07-01 | 1 | -2/+3 |
| | | | | Refs #20680. | ||||
* | Advanced deprecation warnings for Django 1.7. | Aymeric Augustin | 2013-06-29 | 1 | -2/+2 |
| | |||||
* | More import removals | Claude Paroz | 2013-06-29 | 1 | -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 Morales | 2013-06-29 | 1 | -31/+0 |
| | |||||
* | Fixed #20548 -- Removed all PendingDeprecationWarnings ↵ | Marc Tamlyn | 2013-06-14 | 1 | -3/+3 |
| | | | | from django test suite | ||||
* | Used a Python 3 compatible StringIO in test_utils | Claude Paroz | 2013-04-13 | 1 | -2/+1 |
| | |||||
* | Modified test_utils to work with unittest2 discovery. | Preston Timmons | 2013-04-12 | 2 | -76/+87 |
| |