8000 start anyio port by graingert · Pull Request #357 · encode/databases · GitHub
[go: up one dir, main page]

Skip to content
8000

start anyio port #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
missing anyio pytest mark
  • Loading branch information
graingert committed Jun 21, 2021
commit 9acbd784dad20bce0b7ed7740343b8e8ff1f9eb7
5 changes: 3 additions & 2 deletions tests/test_connection_options.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""
Unit tests for the backend connection arguments.
"""
import pytest

from databases.backends.aiopg import AiopgBackend
from databases.backends.mysql import MySQLBackend
from databases.backends.postgres import PostgresBackend
from databases.core import DatabaseURL
from tests.test_databases import DATABASE_URLS, async_adapter
from tests.test_databases import DATABASE_URLS


def test_postgres_pool_size():
Expand All @@ -15,7 +16,7 @@ def test_postgres_pool_size():
assert kwargs == {"min_size": 1, "max_size": 20}


@async_adapter
@pytest.mark.anyio
async def test_postgres_pool_size_connect():
for url in DATABASE_URLS:
if DatabaseURL(url).dialect != "postgresql":
Expand Down
0