From 8ffb22291a68e2f1ad2ba3240bff348fb355ab58 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 30 Dec 2020 09:51:37 -0800 Subject: [PATCH] Add connector to tested fields on search result --- bookwyrm/tests/connectors/test_bookwyrm_connector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookwyrm/tests/connectors/test_bookwyrm_connector.py b/bookwyrm/tests/connectors/test_bookwyrm_connector.py index 8d866ca2..1833ed4e 100644 --- a/bookwyrm/tests/connectors/test_bookwyrm_connector.py +++ b/bookwyrm/tests/connectors/test_bookwyrm_connector.py @@ -31,6 +31,7 @@ class BookWyrmConnector(TestCase): def test_format_search_result(self): + ''' create a SearchResult object from search response json ''' datafile = pathlib.Path(__file__).parent.joinpath( '../data/fr_search.json') search_data = json.loads(datafile.read_bytes()) @@ -43,3 +44,4 @@ class BookWyrmConnector(TestCase): self.assertEqual(result.key, 'https://example.com/book/122') self.assertEqual(result.author, 'Susanna Clarke') self.assertEqual(result.year, 2017) + self.assertEqual(result.connector, self.connector)