Пример #1
0
def test_invalid_query(query: Query, exception: Exception) -> None:
    with pytest.raises(type(exception), match=re.escape(str(exception))):
        query.validate()
Пример #2
0
def test_query(query: Query) -> None:
    query.validate()