Fixes formatting isbn endpoint results
This commit is contained in:
parent
22af7ece71
commit
8c4cafed79
4 changed files with 11 additions and 11 deletions
|
@ -119,12 +119,10 @@ class AbstractConnector(TestCase):
|
|||
@responses.activate
|
||||
def test_get_or_create_author(self):
|
||||
"""load an author"""
|
||||
self.connector.author_mappings = ( # pylint: disable=attribute-defined-outside-init
|
||||
[ # pylint: disable=attribute-defined-outside-init
|
||||
Mapping("id"),
|
||||
Mapping("name"),
|
||||
]
|
||||
)
|
||||
self.connector.author_mappings = [ # pylint: disable=attribute-defined-outside-init # pylint: disable=attribute-defined-outside-init
|
||||
Mapping("id"),
|
||||
Mapping("name"),
|
||||
]
|
||||
|
||||
responses.add(
|
||||
responses.GET,
|
||||
|
|
|
@ -35,7 +35,7 @@ class IsbnViews(TestCase):
|
|||
parent_work=self.work,
|
||||
)
|
||||
models.Connector.objects.create(
|
||||
identifier="self", connector_file="self_connector", local=True
|
||||
identifier="self", connector_file="self_connector"
|
||||
)
|
||||
models.SiteSettings.objects.create()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue