def test_invalid(query): e = Engine() with pytest.raises(SyntaxError): e.compile(query)
def test_prepared_query(query): e = Engine() q = e.compile(query) e.query(q)
def test_valid(query): e = Engine() e.compile(query)