Example #1
0
def test_query_recognition_in_python_should_fail(input_):
    with pytest.raises(StopIteration):
        next(get_statements(input_))
Example #2
0
def test_query_recognition_in_python_should_fail(input_):
    with pytest.raises(StopIteration):
        next(get_statements(input_))
Example #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
Example #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