mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-02 05:46:25 -06:00
17558 add tests
This commit is contained in:
parent
822a4a4bc8
commit
0cb5d9f168
@ -349,6 +349,7 @@ class CustomFieldTest(TestCase):
|
||||
('b', 'Option B'),
|
||||
('c', 'Option C'),
|
||||
('d', 'Option D'),
|
||||
('abcde', 'Option ABCDE'),
|
||||
)
|
||||
|
||||
# Create a set of custom field choices
|
||||
@ -389,6 +390,7 @@ class CustomFieldTest(TestCase):
|
||||
('b', 'Option B'),
|
||||
('c', 'Option C'),
|
||||
('d', 'Option D'),
|
||||
('abcde', 'Option ABCDE'),
|
||||
)
|
||||
choice_set.extra_choices = CHOICES
|
||||
choice_set.full_clean()
|
||||
@ -400,6 +402,7 @@ class CustomFieldTest(TestCase):
|
||||
('a', 'Option A'),
|
||||
('b', 'Option B'),
|
||||
('d', 'Option D'),
|
||||
('abcde', 'Option ABCDE'),
|
||||
)
|
||||
choice_set.extra_choices = CHOICES
|
||||
choice_set.full_clean()
|
||||
@ -410,6 +413,7 @@ class CustomFieldTest(TestCase):
|
||||
('a', 'Option A'),
|
||||
('b', 'Option B'),
|
||||
('c', 'Option C'),
|
||||
('abcde', 'Option ABCDE'),
|
||||
)
|
||||
choice_set.extra_choices = CHOICES
|
||||
choice_set.full_clean()
|
||||
|
Loading…
Reference in New Issue
Block a user