Beispiel #1
0
def test_param_list(paths, params):
    assert _extract_path_parameters_from_paths(paths) == set(params)
Beispiel #2
0
def test_non_matching_path_parameters(invalid_paths, expected):
    """ with non matching paths, the whole set of values should be used. """
    assert _extract_path_parameters_from_paths(invalid_paths) == expected
def test_param_list(paths, params):
    assert _extract_path_parameters_from_paths(paths) == set(params)
def test_non_matching_path_parameters(invalid_paths):
    """ an exception should be raised when a non matching parameter is found. """
    with pytest.raises(InvalidTransmuteDefinition):
        _extract_path_parameters_from_paths(invalid_paths)
def test_non_matching_path_parameters(invalid_paths):
    """ an exception should be raised when a non matching parameter is found. """
    with pytest.raises(InvalidTransmuteDefinition):
        _extract_path_parameters_from_paths(invalid_paths)