1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-22 13:55:03 +01:00

tests/test_check.py: Run black
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alan Orth 2021-10-06 22:10:26 +03:00
parent 8a27fb2589
commit 82261f7fe0
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -377,10 +377,7 @@ def test_check_doi_field():
# Emulate a column in a transposed dataframe (which is just a series), with
# the citation and an empty DOI field.
d = {
"cg.identifier.doi": doi,
"dcterms.bibliographicCitation": citation
}
d = {"cg.identifier.doi": doi, "dcterms.bibliographicCitation": citation}
series = pd.Series(data=d)
result = check.citation_doi(series)
@ -395,10 +392,7 @@ def test_check_doi_only_in_citation(capsys):
# Emulate a column in a transposed dataframe (which is just a series), with
# an empty DOI field and a citation containing a DOI.
d = {
"cg.identifier.doi": None,
"dcterms.bibliographicCitation": citation
}
d = {"cg.identifier.doi": None, "dcterms.bibliographicCitation": citation}
series = pd.Series(data=d)
check.citation_doi(series)