diff options
-rw-r--r-- | fuzzycat/cluster.py | 2 | ||||
-rw-r--r-- | fuzzycat/verify.py | 1 | ||||
-rw-r--r-- | tests/test_verify_cases.py | 12 |
3 files changed, 14 insertions, 1 deletions
diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py index 723d0fa..dfc08b7 100644 --- a/fuzzycat/cluster.py +++ b/fuzzycat/cluster.py @@ -258,7 +258,7 @@ def test_sandcrawler_slugify() -> None: (r"👾 🙇 💁 🙅 🙆 🙋 🙎 🙍", "👾🙇💁🙅🙆🙋🙎🙍"), (r"2️⃣ 3️⃣ 4️⃣ 5️⃣", "2345"), (r"﷽ ", "﷽"), - (r"̗̺͖̹̯͓Ṯ̤͍̥͇͈h̲́e͏͓̼̗̙̼̣͔ ͇̜̱̠͓͍ͅN͕͠e̗̱z̘̝̜̺͙p̤̺̹͍̯͚e̠̻̠͜r̨̤͍̺̖͔̖̖d̠̟̭̬̝͟i̦͖̩͓͔̤a̠̗̬͉̙n͚͜ ̻̞̰͚ͅh̵͉i̳̞v̢͇ḙ͎͟-҉̭̩̼͔m̤̭̫i͕͇̝̦n̗͙ḍ̟ ̯̲͕͞ǫ̟̯̰̲͙̻̝f ̪̰̰̗̖̭̘͘c̦͍̲̞͍̩̙ḥ͚a̮͎̟̙͜ơ̩̹͎s̤.̝̝ ҉Z̡̖̜͖̰̣͉̜a͖̰͙̬͡l̲̫̳͍̩g̡̟̼̱͚̞̬ͅo̗͜.̟", + (r"\"̗̺͖̹̯͓Ṯ̤͍̥͇͈h̲́e͏͓̼̗̙̼̣͔ ͇̜̱̠͓͍ͅN͕͠e̗̱z̘̝̜̺͙p̤̺̹͍̯͚e̠̻̠͜r̨̤͍̺̖͔̖̖d̠̟̭̬̝͟i̦͖̩͓͔̤a̠̗̬͉̙n͚͜ ̻̞̰͚ͅh̵͉i̳̞v̢͇ḙ͎͟-҉̭̩̼͔m̤̭̫i͕͇̝̦n̗͙ḍ̟ ̯̲͕͞ǫ̟̯̰̲͙̻̝f ̪̰̰̗̖̭̘͘c̦͍̲̞͍̩̙ḥ͚a̮͎̟̙͜ơ̩̹͎s̤.̝̝ ҉Z̡̖̜͖̰̣͉̜a͖̰͙̬͡l̲̫̳͍̩g̡̟̼̱͚̞̬ͅo̗͜.̟", "thenezperdianhivemindofchaoszalgo"), (r"The quick brown fox jumps over the lazy dog", "thequickbrownfoxjumpsoverthelazydog"), (r"The quick brown fox jumps over the lazy dog", "thequickbrownfoxjumpsoverthelazydog"), diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index fc298c1..e6310cb 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -52,6 +52,7 @@ WIPv1 (10m) "total": 9481815 } + TODO: allow to pass in a DOI blacklist, e.g. a list of DOI which are not valid any more; example: https://fatcat.wiki/release/azbcyqjnmrdofigpgk24ck4rpq, https://fatcat.wiki/release/eb2uf5ae7bedxe22jasf2l3faa diff --git a/tests/test_verify_cases.py b/tests/test_verify_cases.py new file mode 100644 index 0000000..6e03755 --- /dev/null +++ b/tests/test_verify_cases.py @@ -0,0 +1,12 @@ +import collections +import csv + +Case = collections.namedtuple("Case", "a b status reason") + +def test_verify_cases(): + with open("fixtures/verify.csv") as f: + reader = csv.reader(f, delimiter=',') + for row in reader: + case = Case(row) + print(case) + |