From 146538545209250a2117448746cf2b2dc95ec5ef Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 16 Sep 2021 15:29:06 -0700 Subject: [PATCH] Python formatting --- bookwyrm/tests/views/test_search.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bookwyrm/tests/views/test_search.py b/bookwyrm/tests/views/test_search.py index cd0273bf..da35f557 100644 --- a/bookwyrm/tests/views/test_search.py +++ b/bookwyrm/tests/views/test_search.py @@ -80,9 +80,7 @@ class Views(TestCase): datafile = pathlib.Path(__file__).parent.joinpath("../data/ol_search.json") search_data = json.loads(datafile.read_bytes()) responses.add( - responses.GET, - "https://example.com/search?q=Test%20Book", - json=search_data + responses.GET, "https://example.com/search?q=Test%20Book", json=search_data ) request = self.factory.get("", {"q": "Test Book", "remote": True}) @@ -93,12 +91,10 @@ class Views(TestCase): self.assertIsInstance(response, TemplateResponse) response.render() connector_results = response.context_data["results"] - self.assertEqual( - connector_results[0]["results"][0].title, "Test Book" - ) + self.assertEqual(connector_results[0]["results"][0].title, "Test Book") self.assertEqual( connector_results[1]["results"][0].title, - "This Is How You Lose the Time War" + "This Is How You Lose the Time War", ) def test_search_users(self):