mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 13:38:16 -06:00
13983 update tests
This commit is contained in:
parent
d677dd8b5a
commit
4cdc64c3e3
@ -93,6 +93,10 @@ class CustomFieldChoiceSetTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|||||||
name='Choice Set 3',
|
name='Choice Set 3',
|
||||||
extra_choices=(('C1', 'Choice 1'), ('C2', 'Choice 2'), ('C3', 'Choice 3'))
|
extra_choices=(('C1', 'Choice 1'), ('C2', 'Choice 2'), ('C3', 'Choice 3'))
|
||||||
),
|
),
|
||||||
|
CustomFieldChoiceSet(
|
||||||
|
name='Choice Set 4',
|
||||||
|
extra_choices=(('D1', 'Choice 1'), ('D2', 'Choice 2'), ('D3', 'Choice 3'))
|
||||||
|
),
|
||||||
)
|
)
|
||||||
CustomFieldChoiceSet.objects.bulk_create(choice_sets)
|
CustomFieldChoiceSet.objects.bulk_create(choice_sets)
|
||||||
|
|
||||||
@ -103,9 +107,10 @@ class CustomFieldChoiceSetTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|||||||
|
|
||||||
cls.csv_data = (
|
cls.csv_data = (
|
||||||
'name,extra_choices',
|
'name,extra_choices',
|
||||||
'Choice Set 4,"D1,D2,D3"',
|
'Choice Set 5,"D1,D2,D3"',
|
||||||
'Choice Set 5,"E1,E2,E3"',
|
'Choice Set 6,"E1,E2,E3"',
|
||||||
'Choice Set 6,"F1,F2,F3"',
|
'Choice Set 7,"F1,F2,F3"',
|
||||||
|
'Choice Set 8,"F1:L1,F2:L2,F3:L3"',
|
||||||
)
|
)
|
||||||
|
|
||||||
cls.csv_update_data = (
|
cls.csv_update_data = (
|
||||||
@ -113,6 +118,7 @@ class CustomFieldChoiceSetTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
|||||||
f'{choice_sets[0].pk},"A,B,C"',
|
f'{choice_sets[0].pk},"A,B,C"',
|
||||||
f'{choice_sets[1].pk},"A,B,C"',
|
f'{choice_sets[1].pk},"A,B,C"',
|
||||||
f'{choice_sets[2].pk},"A,B,C"',
|
f'{choice_sets[2].pk},"A,B,C"',
|
||||||
|
f'{choice_sets[3].pk},"A:L1,B:L2,C:L3"',
|
||||||
)
|
)
|
||||||
|
|
||||||
cls.bulk_edit_data = {
|
cls.bulk_edit_data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user