summaryrefslogtreecommitdiff
path: root/test/dialect/test_sqlite.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-09-28 14:08:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-09-28 15:17:26 -0400
commitc3f102c9fe9811fd5286628cc6aafa5fbc324621 (patch)
tree4a78723089ded623701667de1eee21d22edbe6c1 /test/dialect/test_sqlite.py
parent75ac0abc7d5653d10006769a881374a46b706db5 (diff)
downloadsqlalchemy-c3f102c9fe9811fd5286628cc6aafa5fbc324621.tar.gz
upgrade to black 20.8b1
It's better, the majority of these changes look more readable to me. also found some docstrings that had formatting / quoting issues. Change-Id: I582a45fde3a5648b2f36bab96bad56881321899b
Diffstat (limited to 'test/dialect/test_sqlite.py')
-rw-r--r--test/dialect/test_sqlite.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py
index 339a7c479..4a8f6fd78 100644
--- a/test/dialect/test_sqlite.py
+++ b/test/dialect/test_sqlite.py
@@ -71,9 +71,7 @@ class TestTypes(fixtures.TestBase, AssertsExecutionResults):
__only_on__ = "sqlite"
def test_boolean(self):
- """Test that the boolean only treats 1 as True
-
- """
+ """Test that the boolean only treats 1 as True"""
meta = MetaData(testing.db)
t = Table(
@@ -629,7 +627,7 @@ class DialectTest(
'true', 'false', and 'column' are undocumented reserved words
when used as column identifiers (as of 3.5.1). Covering them
here to ensure they remain in place if the dialect's
- reserved_words set is updated in the future. """
+ reserved_words set is updated in the future."""
meta = MetaData(testing.db)
t = Table(
@@ -681,7 +679,7 @@ class DialectTest(
@testing.provide_metadata
def test_quoted_identifiers_functional_two(self):
- """"test the edgiest of edge cases, quoted table/col names
+ """ "test the edgiest of edge cases, quoted table/col names
that start and end with quotes.
SQLite claims to have fixed this in
@@ -1364,7 +1362,11 @@ class InsertTest(fixtures.TestBase, AssertsExecutionResults):
def test_empty_insert_pk1(self, connection):
self._test_empty_insert(
connection,
- Table("a", MetaData(), Column("id", Integer, primary_key=True),),
+ Table(
+ "a",
+ MetaData(),
+ Column("id", Integer, primary_key=True),
+ ),
)
def test_empty_insert_pk2(self, connection):
@@ -1468,7 +1470,10 @@ class InsertTest(fixtures.TestBase, AssertsExecutionResults):
self._test_empty_insert(
connection,
Table(
- "f", MetaData(), Column("x", Integer), Column("y", Integer),
+ "f",
+ MetaData(),
+ Column("x", Integer),
+ Column("y", Integer),
),
)