Ejemplo n.º 1
0
def test_query_recognition_in_python_should_fail(input_):
    with pytest.raises(StopIteration):
        next(get_statements(input_))
Ejemplo n.º 2
0
def test_query_recognition_in_python_should_fail(input_):
    with pytest.raises(StopIteration):
        next(get_statements(input_))
Ejemplo n.º 3
0
def test_query_recognition_in_python_string(input_, expected_output):
    old_query, query, indent = next(get_statements(input_))
    assert old_query == expected_output
    assert indent == " " * 4
Ejemplo n.º 4
0
def test_query_recognition_in_python_string(input_, expected_output):
    old_query, query, indent = next(get_statements(input_))
    assert old_query == expected_output
    assert indent == ' ' * 4