mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-17 11:37:03 +01:00
tests/test_check.py: Update suspicious character check
The suspicious character check was updated to include the name of the field where the metadata value with the suspicious character exists.
This commit is contained in:
parent
62fea95087
commit
d93c2aae13
@ -112,10 +112,12 @@ def test_check_suspicious_characters(capsys):
|
||||
|
||||
value = 'foreˆt'
|
||||
|
||||
check.suspicious_characters(value)
|
||||
field_name = 'dc.contributor.author'
|
||||
|
||||
check.suspicious_characters(value, field_name)
|
||||
|
||||
captured = capsys.readouterr()
|
||||
assert captured.out == f'Suspicious character: {value}\n'
|
||||
assert captured.out == f'Suspicious character ({field_name}): ˆt\n'
|
||||
|
||||
|
||||
def test_check_valid_iso639_2_language():
|
||||
|
Loading…
Reference in New Issue
Block a user