diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-09-13 23:37:18 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-09-13 23:37:18 -0700 |
commit | 0c166af823215b049dfe2c051820772582ea8eab (patch) | |
tree | a83b7e46fa0988cf79803e8c1308d34cfc70ba4c | |
parent | 774ac98c2ca0a1c66c3283d466245cc487d602d3 (diff) | |
download | fatcat-scholar-0c166af823215b049dfe2c051820772582ea8eab.tar.gz fatcat-scholar-0c166af823215b049dfe2c051820772582ea8eab.zip |
make fmt
-rw-r--r-- | fatcat_scholar/schema.py | 18 |
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 = [ |