From d93c2aae13e2e7d0a36bb23d743352327d06cbeb Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 9 Aug 2019 01:26:13 +0300 Subject: [PATCH] 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. --- tests/test_check.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_check.py b/tests/test_check.py index dc00088..7bb5331 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -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():