We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e16251 commit b47752dCopy full SHA for b47752d
tests/test_util.py
@@ -385,6 +385,17 @@ def test_load_csv_without_mapping(self):
385
result = util.load_csv(test_file)
386
assert expected == result
387
388
+ def test_load_csv_with_mapping(self):
389
+ test_file = get_test_loc('test_util/csv/about.csv')
390
+ expected = [OrderedDict([
391
+ ('about_file_path', 'about.ABOUT'),
392
+ ('about_resource', '.'),
393
+ ('name', 'ABOUT tool'),
394
+ ('version', '0.8.1')])
395
+ ]
396
+ result = util.load_csv(test_file, mapping_file=DEFAULT_MAPPING)
397
+ assert expected == result
398
+
399
def test_get_about_file_path_from_csv_using_mapping(self):
400
test_file = get_test_loc('test_util/csv/about.csv')
401
expected = ['about.ABOUT']
0 commit comments