summaryrefslogtreecommitdiff
path: root/django/test
AgeCommit message (Collapse)Author
2024-05-13Fixed SeleniumTestCase.set_emulated_media() when using selenium_hub.Nick Pope
The .execute_cdp_cmd() method doesn't exist on selenium.webdriver.Remote.
2024-05-13Added support for using Microsoft Edge with Selenium.Nick Pope
2024-05-10Organized images in the screenshots workflow.Nick Pope
Added a top-level directory in the zip archive that is the commit hash which makes it easier when downloading multiple artifacts for comparison. Updated the filenames of screenshots for easier comparison between different cases. Added that an error is raised if no screenshots uploaded in workflow.
2024-05-03Refs #31224 -- Fixed typo in django/test/client.py.Natalia
2024-05-02Added a high contrast mode to screenshot cases.Sarah Boyce
Thank you to Sarah Abderemane and Nick Pope for the reviews.
2024-03-13Fixed #34901 -- Added async-compatible interface to session engines.Jon Janzen
Thanks Andrew-Chen-Wang for the initial implementation which was posted to the Django forum thread about asyncifying contrib modules.
2024-03-09Moved --failfast to DiscoverRunner.Adam Johnson
2024-02-26Refs #32114 -- Fixed test crash on non-picklable objects in subtests when ↵David Wobrock
PickleError is raised. Related to the https://github.com/python/cpython/issues/73373. Follow up to c09e8f5fd8f977bf16e9ec5d11b370151fc81ea8.
2024-02-21Fixed #32114 -- Fixed parallel test crash on non-picklable objects in subtests.David Wobrock
2024-02-19Fixed #35226 -- Reallowed executing queries for dynamically created connections.Mariusz Felisiak
Regression in 8fb0be3500cc7519a56985b1b6f415d75ac6fedb. Thanks Florian Apolloner for the report.
2024-02-14Fixed #28263 -- Fixed TestCase setup for databases that don't support ↵Tim Graham
savepoints.
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2024-01-04Used enterClassContext() where appropriate.Mariusz Felisiak
2024-01-03Fixed #33277 -- Disallowed database connections in threads in SimpleTestCase.David Wobrock
2023-12-22Fixed #34658 -- Added SimpleTestCase.assertNotInHTML().Nicolas Lupien
2023-12-12Refs #34305 -- Added SimpleTestCase.enterClassContext() on Python < 3.11.Nick Pope
2023-12-06Refs #34986 -- Moved garbage_collect() helper to django.test.utils.Nick Pope
2023-11-24Fixed #34983 -- Deprecated django.utils.itercompat.is_iterable().Nick Pope
2023-11-23Fixed #14611 -- Added query_params argument to RequestFactory and Client ↵Tom Carrick
classes.
2023-10-31Fixed #32106 -- Preserved HTTP_HOST in test Client when following redirects.Ben Cail
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
2023-10-23Fixed #34903, Refs #34825 -- Made workers initialization respect empty set ↵David Sanders
of used connections. Thanks to David Smith for the investigation & patch. Regression in 2128a73713735fb794ca6565fd5d7792293f5cfa. Follow up to a5905b164dbf52e59fa646af9c3d523c0804d86a. Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
2023-10-18Refs #34043 -- Added --screenshots option to runtests.py and selenium tests.Sarah Boyce
2023-10-16Refs #34043 -- Added context managers to SeleniumTestCase for changing ↵Sarah Boyce
window size.
2023-10-03Fixed #34657 -- Made assert(Not)Contains/assertInHTML display haystacks in ↵Chinmoy Chakraborty
error messages.
2023-10-03Refs #34657 -- Made msg_prefix handling in assertURLEqual()/assertInHTML ↵Mariusz Felisiak
consistent with other assertions. Co-authored-by: Chinmoy Chakraborty <chinmoy12c@gmail.com>
2023-10-02Fixed #32602 -- Clarified wording of TestCase class.faishalmanzar
2023-09-29Refs #34657 -- Made assertInHTML() use unparsed needle in error messages.Chinmoy Chakraborty
2023-09-29Refs #15667 -- Added resetting default renderer when FORM_RENDERER is changed.Mariusz Felisiak
2023-09-25Fixed #34825 -- Avoided setting unused connections when initializing ↵David Sanders
parallel workers.
2023-09-22Fixed #34823 -- Fixed assertTemplateUsed() context manager crash on unnamed ↵Arian
templates.
2023-09-18Refs #26029 -- Removed DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Mariusz Felisiak
This also removes django.core.files.storage.get_storage_class(). Per deprecation timeline.
2023-09-18Refs #33990 -- Removed TransactionTestCase.assertQuerysetEqual() per ↵Mariusz Felisiak
deprecation timeline.
2023-09-18Refs #33990 -- Removed SimpleTestCase.assertFormsetError() per deprecation ↵Mariusz Felisiak
timeline.
2023-08-31Fixed #34210 -- Added unittest's durations option to the test runner.David Smith
2023-08-30Fixed #34757 -- Added support for following redirects to AsyncClient.Olivier Tabone
2023-08-24Corrected AsyncRequestFactory's docstring.Mariusz Felisiak
All AsyncRequestFactory methods are still synchronous callables.
2023-08-23Refs #34757 -- Moved HTTP redirect logic to django.test.client.ClientMixin.Olivier Tabone
2023-07-27Simplified call_command() calls.Nick Pope
2023-07-27Fixed typo in django/test/utils.py.Bruno Alla
2023-07-14Refs #30686 -- Moved Parser.SELF_CLOSING_TAGS to django.utils.html.VOID_ELEMENTSDavid Smith
2023-06-27Fixed #34391 -- Added async-compatible interface to auth functions and ↵Jon Janzen
related methods test clients.
2023-06-26Fixed #34675 -- Fixed creating remote webdriver for Selenium 4.10.0+.Jonathan Weth
2023-06-19Refs #27079 -- Used addClassCleanup() in SeleniumTestCase.Sarah Boyce
Regression in def09bf4126d4886413adf7388882eca8e32576b.
2023-06-13Fixed #34649 -- Fixed headless deprecation warning on Selenium 4.8+.anthony kugel
Thanks David Smith for the report and initial patch.
2023-03-07Fixed #32172 -- Adapted signals to allow async handlers.Jon Janzen
co-authored-by: kozzztik <kozzztik@mail.ru> co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2023-02-17Fixed #34342, Refs #33735 -- Fixed test client handling of async streaming ↵Alexandre Spaeth
responses. Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2023-01-18Refs #34233 -- Used str.removeprefix()/removesuffix().Mariusz Felisiak
2023-01-18Fixed #34233 -- Dropped support for Python 3.8 and 3.9.Mariusz Felisiak
2023-01-17Refs #33348 -- Removed support for passing response object and form/formset ↵Mariusz Felisiak
name to SimpleTestCase.assertFormError()/assertFormSetError(). Per deprecation timeline.