mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-29 09:08:26 +01:00
tests/test_check.py: remove local variables
This was raised by ruff. > F841 Local variable `result` is assigned to but never used We don't actually need the output of the function since these tests capture the stdout.
This commit is contained in:
parent
d5cfec65bd
commit
0ed0fabe21
@ -339,7 +339,7 @@ def test_check_invalid_spdx_license_identifier(capsys):
|
|||||||
|
|
||||||
license = "CC-BY-SA"
|
license = "CC-BY-SA"
|
||||||
|
|
||||||
result = check.spdx_license_identifier(license)
|
check.spdx_license_identifier(license)
|
||||||
|
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert (
|
assert (
|
||||||
@ -362,7 +362,7 @@ def test_check_duplicate_item(capsys):
|
|||||||
}
|
}
|
||||||
df = pd.DataFrame(data=d)
|
df = pd.DataFrame(data=d)
|
||||||
|
|
||||||
result = check.duplicate_items(df)
|
check.duplicate_items(df)
|
||||||
|
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert (
|
assert (
|
||||||
@ -388,7 +388,7 @@ def test_check_mojibake(capsys):
|
|||||||
field = "CIAT Publicaçao"
|
field = "CIAT Publicaçao"
|
||||||
field_name = "dcterms.isPartOf"
|
field_name = "dcterms.isPartOf"
|
||||||
|
|
||||||
result = check.mojibake(field, field_name)
|
check.mojibake(field, field_name)
|
||||||
|
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert (
|
assert (
|
||||||
|
Loading…
Reference in New Issue
Block a user