reformatted code to satisfy linter

This commit is contained in:
David Kennedy 2023-09-11 16:10:59 -04:00
parent 3752148630
commit 1520e80adc
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -1,5 +1,4 @@
from django.test import TestCase, RequestFactory, Client from django.test import TestCase, RequestFactory, Client
from django_fsm import transition
from django.contrib.admin.sites import AdminSite from django.contrib.admin.sites import AdminSite
from django.urls import reverse from django.urls import reverse
@ -47,9 +46,9 @@ class TestDomainApplicationAdminForm(TestCase):
# Create a form instance with the test application # Create a form instance with the test application
form = DomainApplicationAdminForm(instance=self.application) form = DomainApplicationAdminForm(instance=self.application)
# Verify that the form choices match the available transitions for the initial state # Verify that the form choices match the available transitions for started
expected_choices = [('started', 'started'), ('submitted', 'submitted')] expected_choices = [("started", "started"), ("submitted", "submitted")]
self.assertEqual(form.fields['status'].widget.choices, expected_choices) self.assertEqual(form.fields["status"].widget.choices, expected_choices)
class TestDomainApplicationAdmin(TestCase): class TestDomainApplicationAdmin(TestCase):