diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-06 10:43:19 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-15 13:04:58 -0500 |
commit | ebbbac0a76b3327a829864afb26ee1b7ff1dc780 (patch) | |
tree | b086b06760255bc0bb76e51624a5e3772bc4cc3d /lib/sqlalchemy/testing/suite/test_sequence.py | |
parent | 6be06d85e598e4fda6f3d35084e1c5cccb30cee5 (diff) | |
download | sqlalchemy-ebbbac0a76b3327a829864afb26ee1b7ff1dc780.tar.gz |
update execute() arg formats in modules and tests
continuing with producing a SQLAlchemy 1.4.0b2 that internally
does not emit any of its own 2.0 deprecation warnings,
migrate the *args and **kwargs passed to execute() methods
that now must be a single list or dictionary.
Alembic 1.5 is again waiting on this internal consistency to
be present so that it can pass all tests with no 2.0
deprecation warnings.
Change-Id: If6b792e57c8c5dff205419644ab68e631575a2fa
Diffstat (limited to 'lib/sqlalchemy/testing/suite/test_sequence.py')
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_sequence.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_sequence.py b/lib/sqlalchemy/testing/suite/test_sequence.py index d8c35ed0b..7445ade00 100644 --- a/lib/sqlalchemy/testing/suite/test_sequence.py +++ b/lib/sqlalchemy/testing/suite/test_sequence.py @@ -46,11 +46,13 @@ class SequenceTest(fixtures.TablesTest): ) def test_insert_roundtrip(self, connection): - connection.execute(self.tables.seq_pk.insert(), data="some data") + connection.execute(self.tables.seq_pk.insert(), dict(data="some data")) self._assert_round_trip(self.tables.seq_pk, connection) def test_insert_lastrowid(self, connection): - r = connection.execute(self.tables.seq_pk.insert(), data="some data") + r = connection.execute( + self.tables.seq_pk.insert(), dict(data="some data") + ) eq_( r.inserted_primary_key, (testing.db.dialect.default_sequence_base,) ) @@ -62,7 +64,7 @@ class SequenceTest(fixtures.TablesTest): @requirements.sequences_optional def test_optional_seq(self, connection): r = connection.execute( - self.tables.seq_opt_pk.insert(), data="some data" + self.tables.seq_opt_pk.insert(), dict(data="some data") ) eq_(r.inserted_primary_key, (1,)) |