1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2025-05-23 20:32:25 +02:00

Remove checks for invalid multi-value separators

Now that I no longer treat the fix for these as "unsafe" I don't a
ctually need to check for them—I can just fix them when I see them.
This commit is contained in:
2021-03-14 21:01:21 +02:00
parent 3656e9f976
commit 10612cf891
3 changed files with 0 additions and 83 deletions
csv_metadata_quality
tests

@ -47,50 +47,6 @@ def test_check_valid_isbn():
assert result == value
def test_check_invalid_separators(capsys):
"""Test checking invalid multi-value separators."""
value = "Alan|Orth"
field_name = "dc.contributor.author"
check.separators(value, field_name)
captured = capsys.readouterr()
assert (
captured.out
== f"{Fore.RED}Invalid multi-value separator ({field_name}): {Fore.RESET}{value}\n"
)
def test_check_unnecessary_separators(capsys):
"""Test checking unnecessary multi-value separators."""
field = "Alan||Orth||"
field_name = "dc.contributor.author"
check.separators(field, field_name)
captured = capsys.readouterr()
assert (
captured.out
== f"{Fore.RED}Unnecessary multi-value separator ({field_name}): {Fore.RESET}{field}\n"
)
def test_check_valid_separators():
"""Test checking valid multi-value separators."""
value = "Alan||Orth"
field_name = "dc.contributor.author"
result = check.separators(value, field_name)
assert result == value
def test_check_missing_date(capsys):
"""Test checking missing date."""