@@ -257,7 +257,7 @@ def test_check_incorrect_iso_639_1_language(capsys):
257
257
258
258
title = "A randomised vaccine field trial in Kenya demonstrates protection against wildebeest-associated malignant catarrhal fever in cattle"
259
259
language = "es"
260
- exclude = list ()
260
+ exclude = []
261
261
262
262
# Create a dictionary to mimic Pandas series
263
263
row = {"dc.title" : title , "dc.language.iso" : language }
@@ -277,7 +277,7 @@ def test_check_incorrect_iso_639_3_language(capsys):
277
277
278
278
title = "A randomised vaccine field trial in Kenya demonstrates protection against wildebeest-associated malignant catarrhal fever in cattle"
279
279
language = "spa"
280
- exclude = list ()
280
+ exclude = []
281
281
282
282
# Create a dictionary to mimic Pandas series
283
283
row = {"dc.title" : title , "dc.language.iso" : language }
@@ -297,7 +297,7 @@ def test_check_correct_iso_639_1_language():
297
297
298
298
title = "A randomised vaccine field trial in Kenya demonstrates protection against wildebeest-associated malignant catarrhal fever in cattle"
299
299
language = "en"
300
- exclude = list ()
300
+ exclude = []
301
301
302
302
# Create a dictionary to mimic Pandas series
303
303
row = {"dc.title" : title , "dc.language.iso" : language }
@@ -313,7 +313,7 @@ def test_check_correct_iso_639_3_language():
313
313
314
314
title = "A randomised vaccine field trial in Kenya demonstrates protection against wildebeest-associated malignant catarrhal fever in cattle"
315
315
language = "eng"
316
- exclude = list ()
316
+ exclude = []
317
317
318
318
# Create a dictionary to mimic Pandas series
319
319
row = {"dc.title" : title , "dc.language.iso" : language }
@@ -407,7 +407,7 @@ def test_check_doi_field():
407
407
# the citation and a DOI field.
408
408
d = {"cg.identifier.doi" : doi , "dcterms.bibliographicCitation" : citation }
409
409
series = pd .Series (data = d )
410
- exclude = list ()
410
+ exclude = []
411
411
412
412
result = check .citation_doi (series , exclude )
413
413
@@ -418,7 +418,7 @@ def test_check_doi_only_in_citation(capsys):
418
418
"""Test an item with a DOI in its citation, but no DOI field."""
419
419
420
420
citation = "Orth, A. 2021. Testing all the things. doi: 10.1186/1743-422X-9-218"
421
- exclude = list ()
421
+ exclude = []
422
422
423
423
# Emulate a column in a transposed dataframe (which is just a series), with
424
424
# an empty DOI field and a citation containing a DOI.
@@ -439,7 +439,7 @@ def test_title_in_citation():
439
439
440
440
title = "Testing all the things"
441
441
citation = "Orth, A. 2021. Testing all the things."
442
- exclude = list ()
442
+ exclude = []
443
443
444
444
# Emulate a column in a transposed dataframe (which is just a series), with
445
445
# the title and citation.
@@ -456,7 +456,7 @@ def test_title_not_in_citation(capsys):
456
456
457
457
title = "Testing all the things"
458
458
citation = "Orth, A. 2021. Testing all teh things."
459
- exclude = list ()
459
+ exclude = []
460
460
461
461
# Emulate a column in a transposed dataframe (which is just a series), with
462
462
# the title and citation.
@@ -477,7 +477,7 @@ def test_country_matches_region():
477
477
478
478
country = "Kenya"
479
479
region = "Eastern Africa"
480
- exclude = list ()
480
+ exclude = []
481
481
482
482
# Emulate a column in a transposed dataframe (which is just a series)
483
483
d = {"cg.coverage.country" : country , "cg.coverage.region" : region }
@@ -495,7 +495,7 @@ def test_country_not_matching_region(capsys):
495
495
country = "Kenya"
496
496
region = ""
497
497
missing_region = "Eastern Africa"
498
- exclude = list ()
498
+ exclude = []
499
499
500
500
# Emulate a column in a transposed dataframe (which is just a series)
501
501
d = {
0 commit comments