Group name
Changed in Django 2.2:
The max_length increased from 80 to 150 characters.
This commit is contained in:
Awais Qureshi
2020-04-04 21:48:42 +05:00
parent ade9135c7f
commit bdba07a1e2

View File

@@ -75,7 +75,7 @@ class TestManageGroupCommand(TestCase):
for data in TEST_DATA
for args, exception in (
((), 'too few arguments' if sys.version_info.major == 2 else 'required: group_name'), # no group name
(('x' * 81,), 'invalid group name'), # invalid group name
(('x' * 151,), 'invalid group name'), # invalid group name
((TEST_GROUP, 'some-other-group'), 'unrecognized arguments'), # multiple arguments
((TEST_GROUP, '--some-option', 'dummy'), 'unrecognized arguments') # unexpected option name
)