Tim Graham
8119b679eb
Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.
...
http://bugs.python.org/issue27364
2016-09-17 15:44:06 -04:00
Simon Charette
18c72d59e0
Fixed #27214 -- Made skip db features decorators respect wrapping order and inheritance.
2016-09-13 14:12:20 -04:00
Adam Zapletal
ca2ccf54ff
Fixed #24112 -- Fixed assertInHTML()'s counting if needle has no root element.
2016-08-31 20:41:34 -04:00
Chris Jerdonek
42dcceba61
Fixed #26942 -- Added support for subtests during parallel testing.
2016-08-26 14:24:27 -04:00
Berker Peksag
a02b5848ae
Replaced property() usage with decorator in several places.
2016-08-25 20:06:22 -04:00
Chris Jerdonek
f6cd669ff2
Fixed #22414 -- Ensured that LiveServerTestCase closes connections.
2016-08-19 12:47:41 -04:00
Chris Jerdonek
3d0a3c5fff
Fixed #27077 -- Made SQLite's in-memory database checks DRYer.
2016-08-17 20:34:18 -04:00
Andreas Pelme
e76981b433
Fixed #26840 -- Added test.utils.setup/teardown_databases().
2016-08-17 13:55:04 -04:00
Chris Jerdonek
48ede58971
Fixed #27057 -- Made setup_test_environment() store saved settings in one place.
2016-08-15 13:53:06 -04:00
Chris Jerdonek
5890b1613c
Fixed #27008 -- Added --debug-mode option to DiscoverRunner.
2016-08-12 20:43:17 -04:00
Chris Jerdonek
7f9fd42b93
Fixed #27019 -- Made teardown_test_environment() restore the old DEBUG.
2016-08-10 16:24:41 -04:00
Chris Jerdonek
a3a5ef4d0e
Fixed #27035 -- Eased changing settings.DEBUG for DiscoverRunner.
2016-08-09 13:40:29 -04:00
Chris Jerdonek
e7fb724cd2
Fixed #27032 -- Prevented setup_test_environment() from being called twice.
2016-08-08 10:40:29 -04:00
Adam Zapletal
2a11d2d7a7
Fixed #27028 -- Clarified failed parallel tests message.
2016-08-08 09:24:14 -04:00
Ben Demboski
fc8f097117
Fixed #27027 -- Restored Client.force_login() defaulting to the first auth backend.
2016-08-06 08:41:41 -04:00
Chris Jerdonek
42f9d65107
Edited docs of test.utils.setup/teardown_test_environment().
2016-08-05 17:38:49 -04:00
Chris Jerdonek
ebed9ee8d5
Fixed #26981 -- Added DiscoverRunner.get_test_runner_kwargs().
2016-08-04 14:45:44 -04:00
Chris Jerdonek
ef92ed530e
Fixed #26980 -- Added ParallelTestSuite.runner_class to aid subclassing.
2016-08-02 14:15:06 -04:00
Chris Jerdonek
013ee21cf8
Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease subclassing.
2016-08-01 16:15:41 -04:00
Dmitry Dygalo
d7a097265b
Fixed #26922 -- Fixed SimpleTestCase.assertHTMLEqual() crash on Python 3.5+.
2016-07-21 14:01:23 -04:00
Tim Graham
81cdcb66bc
Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0.
2016-06-23 12:04:05 -04:00
Tobias McNulty
17e661641d
Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.
...
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
2016-06-20 11:07:46 -04:00
Ville Skyttä
96f97691ad
Fixed broken links in docs and comments.
2016-06-15 21:20:23 -04:00
Simon Charette
b484f167be
Fixed #26712 -- Avoided unnecessary SET TIMEZONE queries on PostgreSQL.
...
A change of the USE_TZ or TIME_ZONE settings doesn't necessarily require a
change to the active connections' timezones.
2016-06-06 11:26:02 -04:00
Tobias McNulty
78a0ca67f6
Refs #26666 -- Fixed test failures caused by assertRedirects changes ( #6701 )
2016-06-02 21:47:30 -07:00
Tobias McNulty
c7b1b81352
Fixed #26666 -- Added more useful error message to assertRedirects
2016-06-02 14:43:31 -07:00
Simon Charette
7694e196ce
Moved the AUTH_USER_MODEL setting changed receiver.
...
Test suites besides Django's may need the same behavior.
2016-05-18 09:56:29 -04:00
Florian Apolloner
9baf692a58
Fixed #26601 -- Improved middleware per DEP 0005.
...
Thanks Tim Graham for polishing the patch, updating the tests, and
writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-05-17 07:22:22 -04:00
Simon Charette
ad0f536e1c
Fixed #26577 -- Disabled implicit wait of Selenium tests where appropriate.
2016-05-03 23:19:24 -04:00
Vasiliy Faronov
ac77c55bc5
Fixed #26567 -- Updated references to obsolete RFC2616.
...
Didn't touch comments where it wasn't obvious that the code adhered to
the newer standard.
2016-05-03 11:14:40 -04:00
Tim Graham
2f698cd991
Refs #26428 -- Added support for relative path redirects to the test client.
...
Thanks iktyrrell for the patch.
2016-04-29 09:15:28 -04:00
Tim Graham
bb0b4b705b
Fixed #26052 -- Moved conditional_content_removal() processing to the test client.
2016-04-25 07:56:07 -04:00
Tim Graham
df8d8d4292
Fixed E128 flake8 warnings in django/.
2016-04-08 09:51:06 -04:00
Tim Graham
2cd2d18851
Fixed W503 flake8 warnings.
2016-04-04 17:14:26 -04:00
Sergey Kolosov
21dd98a386
Fixed #25699 -- Allowed using the test client if 'django.contrib.sessions' isn't in INSTALLED_APPS.
2016-04-04 07:48:48 -04:00
Tim Graham
d2569f89f2
Fixed #26428 -- Added support for relative path redirects in assertRedirects().
...
Thanks Trac alias master for the report and review.
2016-04-02 10:35:33 -04:00
Alexander Gaevsky
107165c4b0
Fixed #24987 -- Allowed inactive users to login with the test client.
2016-03-23 09:01:52 -04:00
Akshesh
44c0ecdd92
Fixed #25364 -- Added generic way to test on all browsers supported by selenium.
...
Browser names should be passed as a comma separated list to the --selenium flag.
Thanks Tim Graham, Simon Charette and Moritz Sichert for review and discussion.
2016-03-15 13:10:32 -04:00
Markus Holtermann
1cb65b8a77
Fixed #26157 #25321 -- Added sql/params to extra context of schema logger
...
Thanks Akshesh Doshi for the initial patch and Tim Graham for the review
2016-03-15 17:45:58 +11:00
Tim Graham
032f5a7896
Refs #25735 -- Made @tag decorator importable from django.test.
2016-02-19 14:21:00 -05:00
Jakub Paczkowski
d4dc775620
Fixed #25735 -- Added support for test tags to DiscoverRunner.
...
Thanks Carl Meyer, Claude Paroz, and Simon Charette for review.
2016-02-17 09:44:18 -05:00
Jon Dufresne
fcd08c1757
Fixed #11665 -- Made TestCase check deferrable constraints after each test.
2016-02-13 06:53:39 -05:00
Tim Graham
97eb3356b2
Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
2016-02-08 07:21:54 -05:00
knbk
e000ca23d2
Removed obsolete comment.
2016-02-08 00:11:22 -05:00
userimack
60586dd737
Fixed #26125 -- Fixed E731 flake warnings.
2016-01-25 14:23:43 -05:00
Simon Charette
56c461a0d7
Fixed #26038 -- Changed FileSystemStorage defaults on setting change.
...
Thanks to Dave Voutila for the report and Tim for the review.
2016-01-07 12:04:39 -05:00
Paulo Poiati
b643386668
Fixed #24855 -- Allowed using contrib.auth.login() without credentials.
...
Added an optional `backend` argument to login().
2016-01-07 08:56:07 -05:00
Simon Charette
4ccf7154c3
Unified test context decorators.
...
Thanks to Tim for the review.
2016-01-06 20:00:07 -05:00
Simon Charette
7bb373e309
Refs #25746 -- Added a test utility to isolate inlined model registration.
...
Thanks to Tim for the review.
2016-01-06 20:00:07 -05:00
Benjamin Bach
8ad18103a1
Replaced dict.setdefault() usage to avoid unnecessary object instantiations.
2016-01-05 13:06:23 -05:00