Example #1
0
def test_multiple_statements_per_sql_file(test_data, filename, expected_filename):
    test_filename = test_data.get_path(filename)
    expected_filename = test_data.get_path(expected_filename)

    result = handle_sql_file(test_filename)

    with open(expected_filename) as f:
        expected_data = f.read()

    assert result == expected_data
Example #2
0
def test_multiple_statements_per_sql_file(test_data, filename,
                                          expected_filename):
    test_filename = test_data.get_path(filename)
    expected_filename = test_data.get_path(expected_filename)

    result = handle_sql_file(test_filename)

    with open(expected_filename) as f:
        expected_data = f.read()

    assert result == expected_data
Example #3
0
def test_sql_file_formatting(test_data, filename, expected_sql):
    test_filename = test_data.get_path(filename)
    result = handle_sql_file(test_filename)
    assert result == expected_sql
Example #4
0
def test_sql_file_formatting(test_data, filename, expected_sql):
    test_filename = test_data.get_path(filename)
    result = handle_sql_file(test_filename)
    assert result == expected_sql