diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-07-04 12:21:36 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-08-13 18:41:53 -0400 |
| commit | 5fb0138a3220161703e6ab1087319a669d14e7f4 (patch) | |
| tree | 25d006b30830ce6bc71f7a69bed9b570e1ae9654 /test/dialect/postgresql/test_query.py | |
| parent | cd03b8f0cecbf72ecd6c99c4d3a6338c8278b40d (diff) | |
| download | sqlalchemy-5fb0138a3220161703e6ab1087319a669d14e7f4.tar.gz | |
Implement rudimentary asyncio support w/ asyncpg
Using the approach introduced at
https://gist.github.com/zzzeek/6287e28054d3baddc07fa21a7227904e
We can now create asyncio endpoints that are then handled
in "implicit IO" form within the majority of the Core internals.
Then coroutines are re-exposed at the point at which we call
into asyncpg methods.
Patch includes:
* asyncpg dialect
* asyncio package
* engine, result, ORM session classes
* new test fixtures, tests
* some work with pep-484 and a short plugin for the
pyannotate package, which seems to have so-so results
Change-Id: Idbcc0eff72c4cad572914acdd6f40ddb1aef1a7d
Fixes: #3414
Diffstat (limited to 'test/dialect/postgresql/test_query.py')
| -rw-r--r-- | test/dialect/postgresql/test_query.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/dialect/postgresql/test_query.py b/test/dialect/postgresql/test_query.py index ffd32813c..5ab65f9e3 100644 --- a/test/dialect/postgresql/test_query.py +++ b/test/dialect/postgresql/test_query.py @@ -738,17 +738,14 @@ class MatchTest(fixtures.TestBase, AssertsCompiledSQL): def teardown_class(cls): metadata.drop_all() - @testing.fails_on("postgresql+pg8000", "uses positional") + @testing.requires.pyformat_paramstyle def test_expression_pyformat(self): self.assert_compile( matchtable.c.title.match("somstr"), "matchtable.title @@ to_tsquery(%(title_1)s" ")", ) - @testing.fails_on("postgresql+psycopg2", "uses pyformat") - @testing.fails_on("postgresql+pypostgresql", "uses pyformat") - @testing.fails_on("postgresql+pygresql", "uses pyformat") - @testing.fails_on("postgresql+psycopg2cffi", "uses pyformat") + @testing.requires.format_paramstyle def test_expression_positional(self): self.assert_compile( matchtable.c.title.match("somstr"), |
