From 0c166af823215b049dfe2c051820772582ea8eab Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 13 Sep 2020 23:37:18 -0700 Subject: make fmt --- fatcat_scholar/schema.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index ab58bf3..db3b668 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -271,12 +271,18 @@ def clean_url_conservative(url: Optional[str]) -> Optional[str]: def test_clean_url_conservative() -> None: assert clean_url_conservative("") == None assert clean_url_conservative(None) == None - assert clean_url_conservative("") == \ - "http://en.wikipedia.org/wiki/Rumpelstiltskin" - assert clean_url_conservative(".Acessoem") == \ - "http://en.wikipedia.org/wiki/Baiji" - assert clean_url_conservative("Available:en.m.wikipedia.org/wiki/Jigawa_State") == \ - "Available:en.m.wikipedia.org/wiki/Jigawa_State" + assert ( + clean_url_conservative("") + == "http://en.wikipedia.org/wiki/Rumpelstiltskin" + ) + assert ( + clean_url_conservative(".Acessoem") + == "http://en.wikipedia.org/wiki/Baiji" + ) + assert ( + clean_url_conservative("Available:en.m.wikipedia.org/wiki/Jigawa_State") + == "Available:en.m.wikipedia.org/wiki/Jigawa_State" + ) UNWANTED_ABSTRACT_PREFIXES = [ -- cgit v1.2.3