mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-22 05:45:02 +01:00
tests/test_fix.py: Add test for missing space after comma
This commit is contained in:
parent
89d72540f1
commit
07f80cb37f
@ -56,3 +56,13 @@ def test_fix_newlines():
|
||||
ya'''
|
||||
|
||||
assert fix.newlines(value) == 'Kenya'
|
||||
|
||||
|
||||
def test_fix_comma_space():
|
||||
'''Test adding space after comma.'''
|
||||
|
||||
value = 'Orth,Alan S.'
|
||||
|
||||
field_name = 'dc.contributor.author'
|
||||
|
||||
assert fix.comma_space(value, field_name) == 'Orth, Alan S.'
|
||||
|
Loading…
Reference in New Issue
Block a user