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
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