Ejemplo n.º 1
0
def test_param_list(paths, params):
    assert _extract_path_parameters_from_paths(paths) == set(params)
Ejemplo n.º 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
Ejemplo n.º 3
0
def test_param_list(paths, params):
    assert _extract_path_parameters_from_paths(paths) == set(params)
Ejemplo n.º 4
0
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)
Ejemplo n.º 5
0
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)