mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-11 03:37:06 +02:00
* Enable E501 rule * Configure ruff formatter * Reformat migration files to fix line length violations * Fix various E501 errors * Move table template code to template_code.py & ignore E501 errors * Reformat raw SQL
This commit is contained in:
@@ -239,9 +239,24 @@ class ContactAssignmentTest(APIViewTestCases.APIViewTestCase):
|
||||
ContactRole.objects.bulk_create(contact_roles)
|
||||
|
||||
contact_assignments = (
|
||||
ContactAssignment(object=sites[0], contact=contacts[0], role=contact_roles[0], priority=ContactPriorityChoices.PRIORITY_PRIMARY),
|
||||
ContactAssignment(object=sites[0], contact=contacts[1], role=contact_roles[1], priority=ContactPriorityChoices.PRIORITY_SECONDARY),
|
||||
ContactAssignment(object=sites[0], contact=contacts[2], role=contact_roles[2], priority=ContactPriorityChoices.PRIORITY_TERTIARY),
|
||||
ContactAssignment(
|
||||
object=sites[0],
|
||||
contact=contacts[0],
|
||||
role=contact_roles[0],
|
||||
priority=ContactPriorityChoices.PRIORITY_PRIMARY,
|
||||
),
|
||||
ContactAssignment(
|
||||
object=sites[0],
|
||||
contact=contacts[1],
|
||||
role=contact_roles[1],
|
||||
priority=ContactPriorityChoices.PRIORITY_SECONDARY,
|
||||
),
|
||||
ContactAssignment(
|
||||
object=sites[0],
|
||||
contact=contacts[2],
|
||||
role=contact_roles[2],
|
||||
priority=ContactPriorityChoices.PRIORITY_TERTIARY,
|
||||
),
|
||||
)
|
||||
ContactAssignment.objects.bulk_create(contact_assignments)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user