Skip to content

Commit

Permalink
🔥 unused util tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Oct 19, 2023
1 parent f4404ef commit eddaef5
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,7 @@ def test_util():
assert str(c.base_path) == "/tmp"


def test_util_cleaning():
assert util.clean_string(" foo\n bar") == "foo bar"
assert util.clean_string(None) is None
assert util.clean_string("") is None
assert util.clean_string(" ") is None
assert util.clean_name(" foo\n bar") == "foo bar"
assert util.clean_name("- - . *") is None

assert util.fingerprint("Mrs. Jane Doe") == "doe jane mrs"
assert util.fingerprint("Mrs. Jane Mrs. Doe") == "doe jane mrs"
assert util.fingerprint("#") is None
assert util.fingerprint(" ") is None
assert util.fingerprint("") is None
assert util.fingerprint(None) is None

def test_util_join():
assert util.join_text("A", " ", "b", "-") == "A b"


Expand Down

0 comments on commit eddaef5

Please sign in to comment.