Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_dict_merge():
master = {'one': 1}
dataset.dict_merge(master, {'two': 2})
assert master == {'one': 1, 'two': 2}
dataset.dict_merge(master, {'two': 2})
assert master == {'one': 1, 'two': 2}
with pytest.raises(dataset.DatasetBuildError):
dataset.dict_merge(master, {'two': 3})
def test_dict_merge():
master = {'one': 1}
dataset.dict_merge(master, {'two': 2})
assert master == {'one': 1, 'two': 2}
dataset.dict_merge(master, {'two': 2})
assert master == {'one': 1, 'two': 2}
with pytest.raises(dataset.DatasetBuildError):
dataset.dict_merge(master, {'two': 3})