summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-08-31Fixed #25264 -- Allowed suppressing base command options in --help output.Jan Szoja
This also suppresses -verbosity and --trackback options in the runserver's help.
2021-08-31Refs #25264 -- Added test for command --help output with default options and ↵Jan Szoja
custom arguments.
2021-08-31Fixed #33061 -- Fixed handling nonexistent keys with negative deltas in ↵Sondre Lillebø Gundersen
incr()/decr() in memcached backends. Thanks Chris Jerdonek for the review.
2021-08-31Refs #33061 -- Added DummyCache.incr()/decr() tests for nonexistent keys ↵Sondre Lillebø Gundersen
with negative deltas.
2021-08-30Fixed #24900 -- Allowed migrating backward to squashed migrations.Jacob Walls
2021-08-30Refs #24900 -- Added MigrationLoader test for applying squashed migrations.Jacob Walls
2021-08-30Fixed #32992 -- Restored offset extraction for fixed offset timezones.Carlton Gibson
Regression in 10d126198434810529e0220b0c6896ed64ca0e88.
2021-08-30Fixed #33054 -- Made TestCase.captureOnCommitCallbacks() capture callbacks ↵Eugene Morozov
recursively.
2021-08-27Fixed #32900 -- Improved migrations questioner prompts.Mateo Radman
2021-08-27Refs #32900 -- Added makemigrations tests for messages in interactive mode.Mateo Radman
2021-08-27Refs #32900 -- Added test for ignoring the default value in ↵Mateo Radman
InteractiveMigrationQuestioner.ask_not_null_alteration().
2021-08-27Fixed #33051 -- Fixed highlighting the current model in admin's sidebar with ↵Hasan Ramezani
non-ASCII model names.
2021-08-27Refs #32338 -- Made RadioSelect/CheckboxSelectMultiple render in <div> tags.David Smith
This improves accessibility for screen reader users.
2021-08-26Refs #29898 -- Changed fields in ProjectState's relation registry to dict.Mariusz Felisiak
2021-08-25Refs #29898 -- Made ProjectState encapsulate alterations in relations registry.Manav Agarwal
Thanks Simon Charette and Chris Jerdonek for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-08-24Fixed #32552 -- Added logger argument to DiscoverRunner.Chris Jerdonek
2021-08-24Refs #10929 -- Allowed NowUTC SQL customization for third-party backends.Tim Graham
2021-08-23Fixed #33030 -- Fixed broken links to GDAL docs.Märt Häkkinen
2021-08-20Fixed #33017 -- Fixed storage engine introspection on MySQL.Matjaz Gregoric
This also improves performance on MySQL instances with a large number of databases, since querying the information_schema table can be very slow
2021-08-19Removed reference to nonexistent collectstatic --exclude-dirs option.Chris Jerdonek
2021-08-19Fixed #33014 -- Made ProjectState raise exception when real_apps argument is ↵Chris Jerdonek
not a set.
2021-08-19Fixed #32994 -- Fixed autoreloader tests when using 'python -m'.Jonny Park
2021-08-19Refs #31621 -- Fixed handling --parallel option in test management command ↵Mariusz Felisiak
and runtests.py. Regression in ae89daf46f83a7b39d599d289624c3377bfa4ab1. Thanks Tim Graham for the report.
2021-08-19Refs #31621 -- Added more tests for test --parallel option.Mariusz Felisiak
2021-08-19Fixed #33036 -- Made simple_tag()/inclusion_tag() with takes_context raise ↵Matt Westcott
TemplateSyntaxError when function has no parameters.
2021-08-17Refs #32800 -- Added test_masked_secret_accepted_and_not_replaced().Chris Jerdonek
This improves test_bare_secret_accepted_and_replaced() by adding a stronger assertion. It also adds a parallel test for the non-bare (masked) case.
2021-08-17Refs #32800 -- Improved CsrfViewMiddlewareTestMixin._check_token_present().Chris Jerdonek
This changes CsrfViewMiddlewareTestMixin._check_token_present() to give more detailed information if the check fails, and in particular why it failed. It also moves CsrfFunctionTests.assertMaskedSecretCorrect() to a separate CsrfFunctionTestMixin so the helper can be used in CsrfViewMiddlewareTestMixin.
2021-08-17Refs #32800 -- Used the cookie argument to ↵Chris Jerdonek
CsrfViewMiddlewareTestMixin._get_request() in more tests.
2021-08-11Refs #29898 -- Changed ProjectState.real_apps to set.Mariusz Felisiak
2021-08-10Refs #29205 -- Added MultiValueField test for rendering of optional subfields.David Smith
2021-08-10Fixed #32993 -- Added AutocompleteJsonView.serialize_result() to allow ↵Mart Sõmermaa
customization.
2021-08-09Refs #33002 -- Added DebugLexer/Lexer.tokenize() test for trailing text token.Mariusz Felisiak
2021-08-09Refs #33002 -- Made template_tests.tests.py's tests test both Lexer and ↵Chris Jerdonek
DebugLexer.
2021-08-09Refs #32990 -- Added tests for DebugLexer/Lexer.tokenize().Greg Twohig
2021-08-06Refs #32956 -- Corrected spelling of daylight saving time.David Smith
AP Stylebook: Saving not savings, no hyphen, and lowercase.
2021-08-06Refs #22123 -- Added more URLValidator test for invalid IPv6 literals.Mariusz Felisiak
2021-08-06Fixed #32983 -- Added system check for redundant related_name on symmetrical ↵Nick Touran
M2M fields. Since ManyToManyFields defined with `symmetrical=True` do not add a related field to the target model, including a `related_name` argument will never do what the coder likely expects. This makes including a related_name with a symmetrical model raise a system check warning. ticket-32983
2021-08-06Refs #32983 -- Removed unneeded related_name from test model definitions.Nick Touran
2021-08-05Fixed #27590 -- Allowed customizing a manifest file storage in ↵Jarosław Wygoda
ManifestFilesMixin.
2021-08-05Fixed #32988 -- Prevented creation of more test databases than TestCases.Mariusz Felisiak
DiscoverRunner.parallel is used in setup_databases() and teardown_databases() to control the number of test databases. Regression in cb6c19749d342c3dc0f97d89ff6887b220cf45b8.
2021-08-04Fixed #29205 -- Corrected rendering of required attributes for ↵Jacob Walls
MultiValueField subfields.
2021-08-04Fixed #32855 -- Corrected BoundWidget.id_for_label() with custom auto_id.Jacob Rief
2021-08-04Fixed #29063 -- Fixed migrate crash when specifying a name of partially ↵Jacob Walls
applied squashed migrations.
2021-08-04Fixed typos in migrations tests, comments, and error message.Jacob Walls
2021-08-04Used assertRaisesMessage() to test ↵Mariusz Felisiak
MigrationLoader.get_migration_by_prefix()'s error messages.
2021-08-04Refs #32074 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.10+.Michał Górny
Python 3.10.0rc1 changed the error messages issued by argparse on invalid choice to include the argument name. Update the expected test output to account for that.
2021-08-03Fixed #32984 -- Allowed customizing a deletion field widget in formsets.Ties Jan Hefting
2021-08-03Fixed typos in tests/forms_tests/tests/test_formsets.py.Ties Jan Hefting
2021-08-03Fixed #31621 -- Added support for '--parallel auto' to test management command.Adam Johnson
2021-08-03Refs #31621 -- Added more tests for test --parallel option.Adam Johnson