Skip to content

Commit 75e92f7

Browse files
gordthompsonrafiss
authored andcommitted
Fix linter errors
1 parent 8f87938 commit 75e92f7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

sqlalchemy_cockroachdb/asyncpg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import json as _py_json
2-
31
from sqlalchemy.dialects.postgresql.asyncpg import PGDialect_asyncpg
42
from .base import CockroachDBDialect
53
from .ddl_compiler import CockroachDDLCompiler

test/test_suite_sqlalchemy.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from sqlalchemy import __version__ as sa_version
2+
from sqlalchemy.testing import combinations
23
from sqlalchemy.testing import skip
34
from sqlalchemy.testing.suite import * # noqa
45
from sqlalchemy.testing.suite import ComponentReflectionTest as _ComponentReflectionTest
@@ -13,7 +14,7 @@ def test_get_indexes(self, connection):
1314
if connection.dialect._is_v202plus and sa_version >= "1.4":
1415
super().test_get_indexes(connection, None, None)
1516

16-
@testing.combinations(
17+
@combinations(
1718
("noncol_idx_test_nopk", "noncol_idx_nopk"),
1819
("noncol_idx_test_pk", "noncol_idx_pk"),
1920
argnames="tname,ixname",
@@ -33,7 +34,7 @@ def test_null_in_empty_set_is_false(self, connection):
3334

3435

3536
class LongNameBlowoutTest(_LongNameBlowoutTest):
36-
@testing.combinations(
37+
@combinations(
3738
("fk",),
3839
("pk",),
3940
("ix",),
@@ -51,19 +52,19 @@ class NumericTest(_NumericTest):
5152
def test_float_as_decimal(self, do_numeric_test):
5253
# asyncpg.exceptions.DatatypeMismatchError: value type decimal doesn't match type
5354
# float4 of column "x"
54-
if config.db.dialect.driver != "asyncpg":
55+
if config.db.dialect.driver != "asyncpg": # noqa
5556
super().test_float_as_decimal(do_numeric_test)
5657

5758
def test_float_as_float(self, do_numeric_test):
5859
# asyncpg.exceptions.DatatypeMismatchError: value type decimal doesn't match type
5960
# float4 of column "x"
60-
if config.db.dialect.driver != "asyncpg":
61+
if config.db.dialect.driver != "asyncpg": # noqa
6162
super().test_float_as_decimal(do_numeric_test)
6263

6364
def test_float_custom_scale(self, do_numeric_test):
6465
# asyncpg.exceptions.DatatypeMismatchError: value type decimal doesn't match type
6566
# float4 of column "x"
66-
if config.db.dialect.driver != "asyncpg":
67+
if config.db.dialect.driver != "asyncpg": # noqa
6768
super().test_float_as_decimal(do_numeric_test)
6869

6970

0 commit comments

Comments
 (0)