summaryrefslogtreecommitdiff
path: root/test/dialect/mssql/test_sequence.py
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2021-07-26 12:52:23 -0600
committerGord Thompson <gord@gordthompson.com>2021-07-26 14:00:53 -0600
commit2c4a497a0c7f3981be38340089cbb5f32e376b03 (patch)
tree84ff588f3f48afc4db2b4a401293c4332f7898de /test/dialect/mssql/test_sequence.py
parentc6b1d24fe71c22e4d2117d084f06df3597671985 (diff)
downloadsqlalchemy-2c4a497a0c7f3981be38340089cbb5f32e376b03.tar.gz
Modernize tests - dml_values
Change-Id: Ida86ed40c43d91813151621b847376976773a5f9
Diffstat (limited to 'test/dialect/mssql/test_sequence.py')
-rw-r--r--test/dialect/mssql/test_sequence.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dialect/mssql/test_sequence.py b/test/dialect/mssql/test_sequence.py
index 44a8f4020..5afe9c075 100644
--- a/test/dialect/mssql/test_sequence.py
+++ b/test/dialect/mssql/test_sequence.py
@@ -55,18 +55,18 @@ class SequenceTest(fixtures.TablesTest):
def test_int_seq(self, connection):
t = self.tables.int_seq_t
- connection.execute(t.insert({"txt": "int_seq test"}))
+ connection.execute(t.insert().values({"txt": "int_seq test"}))
result = connection.scalar(select(t.c.id))
eq_(result, 1)
def test_bigint_seq(self, connection):
t = self.tables.bigint_seq_t
- connection.execute(t.insert({"txt": "bigint_seq test"}))
+ connection.execute(t.insert().values({"txt": "bigint_seq test"}))
result = connection.scalar(select(t.c.id))
eq_(result, 3000000000)
def test_decimal_seq(self, connection):
t = self.tables.decimal_seq_t
- connection.execute(t.insert({"txt": "decimal_seq test"}))
+ connection.execute(t.insert().values({"txt": "decimal_seq test"}))
result = connection.scalar(select(t.c.id))
eq_(result, Decimal("3000000000"))