summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/schema.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-09-13 23:37:18 -0700
committerBryan Newbold <bnewbold@archive.org>2020-09-13 23:37:18 -0700
commit0c166af823215b049dfe2c051820772582ea8eab (patch)
treea83b7e46fa0988cf79803e8c1308d34cfc70ba4c /fatcat_scholar/schema.py
parent774ac98c2ca0a1c66c3283d466245cc487d602d3 (diff)
downloadfatcat-scholar-0c166af823215b049dfe2c051820772582ea8eab.tar.gz
fatcat-scholar-0c166af823215b049dfe2c051820772582ea8eab.zip
make fmt
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r--fatcat_scholar/schema.py18
1 files changed, 12 insertions, 6 deletions
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>") == \
- "http://en.wikipedia.org/wiki/Rumpelstiltskin"
- assert clean_url_conservative("<http://en.wikipedia.org/wiki/Baiji>.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>")
+ == "http://en.wikipedia.org/wiki/Rumpelstiltskin"
+ )
+ assert (
+ clean_url_conservative("<http://en.wikipedia.org/wiki/Baiji>.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 = [