def test_corrupted_toml_loader():
    config_dict = toml.load((os.getcwd() + '/src/tests/worker/config_handling/corrupted_conf.toml'))
    with pytest.raises(MultipleInvalid):
        validate_general(config_dict['general'])
    with pytest.raises(MultipleInvalid):
        validate_storage(config_dict['archive1'])
def test_corrupted_toml_loader():
    config_dict = toml.load((os.getcwd() + '/src/tests/worker/config_handling/corrupted_conf.toml'))
    with pytest.raises(MultipleInvalid):
        validate_general(config_dict['general'])
    with pytest.raises(MultipleInvalid):
        validate_storage(config_dict['archive1'])