mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-05-08 06:06:00 +02: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:
@ -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():
|
||||
|
Reference in New Issue
Block a user