summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_management.py
AgeCommit message (Collapse)Author
2024-11-26Fixed #35942 -- Fixed createsuperuser crash on Python 3.13+ when username is ↵Tommy Allen
unavailable. Thanks Mariusz Felisiak and Jacob Tyler Walls for reviews.
2024-07-04Fixed #35569 -- Improved wording of invalid ForeignKey error message.Jacob Walls
2024-05-13Fixed #35408 -- Optimized post-migrate permission creation.Adam Johnson
co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-12-31Used addCleanup() in tests where appropriate.Mariusz Felisiak
2023-08-08Fixed #34542 -- Made createsuperuser handle required blank fields in ↵Mateusz Więckowski
non-interactive mode.
2022-12-24Fixed #34165 -- Made permissions creation respect the "using" parameter.David Wobrock
2022-09-27Completed test coverage for createsuperuser command.Marcelo Galigniana
2022-05-25Renamed wrapped functions to wrapper.Aymeric Augustin
All these functions are wrapping another function. They're the wrapper, while the function they're wrapping is the wrapped.
2022-04-01Fixed #33613 -- Made createsuperuser detect uniqueness of USERNAME_FIELD ↵Lucidiot
when using Meta.constraints.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-10-12Fixed #33178 -- Made createsuperuser validate required fields passed in ↵Christophe Henry
options in interactive mode.
2021-10-12Refs #33178 -- Added createsuperuser tests for validation of foreign keys.Christophe Henry
2021-10-12Refs #21755 -- Fixed createsuperuser crash for required foreign keys passed ↵Christophe Henry
in options in interactive mode. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-10-12Refs #29628, Refs #33178 -- Made createsuperuser validate password against ↵Mariusz Felisiak
required fields passed in options.
2021-10-07Fixed #33151 -- Fixed createsuperuser crash for many-to-many required fields ↵Christophe Henry
in non-interactive mode.
2021-08-11Refs #29898 -- Changed ProjectState.real_apps to set.Mariusz Felisiak
2020-08-14Fixed #31878 -- Made createsuperuser respect --database option in default ↵Yan Mitrofanov
usernames.
2020-08-14Fixed typo in tests/auth_tests/test_management.py docstring.Yan Mitrofanov
2020-05-13Disabled management commands output with verbosity 0 in various tests.François Freitag
2020-05-01Removed unnecessary inner methods in CreatesuperuserManagementCommandTestCase.François Freitag
2020-04-20Disabled management commands output with verbosity 0 in various tests.François Freitag
Instead of capturing the command output and discard it immediately, tell the command not to log.
2020-04-20Removed unnecessary capturing of stdout/stderr in auth_tests.test_management.François Freitag
2019-08-26Fixed #29019 -- Added ManyToManyField support to REQUIRED_FIELDS.Hasan Ramezani
2019-07-02Fixed #27801 -- Made createsuperuser fall back to environment variables for ↵Hasan Ramezani
password and required fields.
2019-01-16Fixed #11154, #22270 -- Made proxy model permissions use correct content type.Arthur Rio
Co-Authored-By: Simon Charette <charette.s@gmail.com> Co-Authored-By: Antoine Catton <acatton@fusionbox.com>
2019-01-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-08-18Simplified how createsuperuser tests generate passwords.Josh Schneier
2018-08-05Fixed #29616 -- Fixed createsuperuser for user models that don't have a ↵Josh Schneier
password field.
2018-08-04Fixed #29628 -- Made createsuperuser validate password against username and ↵Josh Schneier
required fields.
2018-06-07Added a missing test for createsuperuser management command.Hasan Ramezani
2018-06-03Fixed #10827 -- Ensured ContentTypes are created before permission creation.Claude Paroz
2018-05-29Fixed #28044 -- Unified the logic for createsuperuser's interactive and ↵Dohyeon Kim
--noinput modes.
2018-05-27Added test for createsuperuser's handling of KeyboardInterrupt.Hasan Ramezani
2018-05-16Fixed #8936 -- Added a view permission and a read-only admin.olivierdalang
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
2017-11-03Fixed #28571 -- Added a prompt to bypass password validation in createsuperuser.Tom
2017-11-03Improved technique for matching input prompts in contrib.auth management tests.Tim Graham
2017-10-09Fixed #28591 -- Added an error message for createsuperuser --username= (blank).Hasan Ramezani
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-16Fixed #27787 -- Made call_command() validate the options it receives.Chandrakant Kumar
2017-05-12Improved test coverage for createsuperuser command.Sławek Ehlert
2017-03-01Improved test coverage for django.contrib.auth.Anton Samarchyan
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.