mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
formatted for linter
This commit is contained in:
parent
4039c168fa
commit
2d9f96c6d0
1 changed files with 4 additions and 5 deletions
|
@ -80,7 +80,7 @@ class TestFsmModelResource(TestCase):
|
|||
"""Test initializing an instance of a class with a FSM field"""
|
||||
|
||||
# Mock a row with FSMField data
|
||||
row_data = {'state': 'ready'}
|
||||
row_data = {"state": "ready"}
|
||||
|
||||
self.resource._meta.model = Domain
|
||||
|
||||
|
@ -88,13 +88,13 @@ class TestFsmModelResource(TestCase):
|
|||
|
||||
# Assert that the instance is initialized correctly
|
||||
self.assertIsInstance(instance, Domain)
|
||||
self.assertEqual(instance.state, 'ready')
|
||||
self.assertEqual(instance.state, "ready")
|
||||
|
||||
def test_import_field(self):
|
||||
"""Test that importing a field does not import FSM field"""
|
||||
# Mock a field and object
|
||||
field_mock = Mock(attribute='state')
|
||||
obj_mock = Mock(_meta=Mock(fields=[Mock(name='state', spec=['name'], __class__=Mock)]))
|
||||
field_mock = Mock(attribute="state")
|
||||
obj_mock = Mock(_meta=Mock(fields=[Mock(name="state", spec=["name"], __class__=Mock)]))
|
||||
|
||||
# Mock the super() method
|
||||
super_mock = Mock()
|
||||
|
@ -107,7 +107,6 @@ class TestFsmModelResource(TestCase):
|
|||
super_mock.assert_called_once_with(field_mock, obj_mock, data={}, is_m2m=False)
|
||||
|
||||
|
||||
|
||||
class TestDomainAdmin(MockEppLib, WebTest):
|
||||
# csrf checks do not work with WebTest.
|
||||
# We disable them here. TODO for another ticket.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue