Skip to content
Snippets Groups Projects
Commit 1109312c authored by yvesn's avatar yvesn
Browse files

obis: fixing integration tests

parent 47994038
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ def decorator_print(func):
def wrapper(tmpdir, *args, **kwargs):
try:
func(tmpdir, *args, **kwargs)
except AssertionError:
except Exception:
print(output_buffer)
raise
return wrapper
......@@ -79,7 +79,7 @@ def test_obis(tmpdir):
assert "Created data set {}.".format(config['data_set_id']) in result
result = cmd('git annex info big_file')
assert 'file: big_file' in result
assert 'key: SHA256E-s1000000--d29751f2649b32ff572b5e0a9f541ea660a50f94ff0beedfb0b692b924cc8025' in result
assert 'key: MD5-s1000000--879f4bba57ed37c9ec5e5aedf9864698' in result
assert 'present: true' in result
data_set = o.get_dataset(config['data_set_id']).data
assert_matching(config, data_set, tmpdir, 'obis_data/data1')
......
......@@ -249,7 +249,7 @@ class ConfigResolverImpl(object):
else:
config = config['public']
value = config.get(param.name)
if value is None:
if loc == 'global' and value is None:
value = param.default_value
return value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment