1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2025-01-03 01:27:05 +01:00

tests/test_check.py: Fix unused result

We don't need to capture the function's return value here because
pytest will capture stdout from the function.
This commit is contained in:
Alan Orth 2019-08-10 23:45:41 +03:00
parent 62ef2a4489
commit e801042340
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -201,7 +201,7 @@ def test_check_uncommon_filename_extension(capsys):
value = 'file.pdf.lck' value = 'file.pdf.lck'
result = check.filename_extension(value) check.filename_extension(value)
captured = capsys.readouterr() captured = capsys.readouterr()
assert captured.out == f'Filename with uncommon extension: {value}\n' assert captured.out == f'Filename with uncommon extension: {value}\n'