Пример #1
0
def test_map_is_valid(map_name):
    """
    Use validator to check all the valid maps are correctly layered, therefore accepted.
    """
    assert check_tiles(map_name) is True
Пример #2
0
def test_map_is_invalid(map_name, map_exception):
    """
    Use validator to check the invalid map is not accepted.
    """
    with pytest.raises(map_exception):
        check_tiles(map_name)
Пример #3
0
def test_map_is_invalid(map_name):
    """
    Use validator to check the invalid map is not accepted.
    """
    assert check_tiles(map_name) is not True