From 772374735da27df1ddb907f4a0f5085b46dbe82b Mon Sep 17 00:00:00 2001 From: Khairi Hafsham Date: Thu, 2 Feb 2017 13:02:21 -0500 Subject: Make all tests to be PEP8 compliant tested using pycodestyle version 2.2.0 Fixes: #3885 Change-Id: I5df43adc3aefe318f9eeab72a078247a548ec566 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/343 --- test/dialect/mysql/test_compiler.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/dialect/mysql/test_compiler.py') diff --git a/test/dialect/mysql/test_compiler.py b/test/dialect/mysql/test_compiler.py index b72507104..35ff603a8 100644 --- a/test/dialect/mysql/test_compiler.py +++ b/test/dialect/mysql/test_compiler.py @@ -17,6 +17,7 @@ from sqlalchemy import testing from sqlalchemy.sql import table, column import re + class CompileTest(fixtures.TestBase, AssertsCompiledSQL): __dialect__ = mysql.dialect() @@ -43,10 +44,12 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): def test_create_index_with_prefix(self): m = MetaData() tbl = Table('testtbl', m, Column('data', String(255))) - idx = Index('test_idx1', tbl.c.data, mysql_length=10, mysql_prefix='FULLTEXT') + idx = Index('test_idx1', tbl.c.data, mysql_length=10, + mysql_prefix='FULLTEXT') self.assert_compile(schema.CreateIndex(idx), - 'CREATE FULLTEXT INDEX test_idx1 ON testtbl (data(10))') + 'CREATE FULLTEXT INDEX test_idx1 ' + 'ON testtbl (data(10))') def test_create_index_with_length(self): m = MetaData() @@ -645,4 +648,4 @@ class SQLTest(fixtures.TestBase, AssertsCompiledSQL): self.assert_compile( t1.outerjoin(t2, t1.c.x == t2.c.y, full=True), "t1 FULL OUTER JOIN t2 ON t1.x = t2.y" - ) \ No newline at end of file + ) -- cgit v1.2.1