Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions db_try/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from db_try.connections import build_connection_factory
from db_try.decorators import postgres_retry
from db_try.helpers import build_db_dsn, is_dsn_multihost
from db_try.dsn import build_db_dsn, is_dsn_multihost
from db_try.retry import postgres_retry
from db_try.transaction import Transaction


Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_helpers.py → tests/test_dsn.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import typing

from db_try import helpers, is_dsn_multihost
from db_try import build_db_dsn, is_dsn_multihost


def test_build_db_dsn() -> None:
database_name: typing.Final = "new_db_name"
drivername: typing.Final = "postgresql+asyncpg"
result_dsn: typing.Final = helpers.build_db_dsn(
result_dsn: typing.Final = build_db_dsn(
db_dsn="postgresql://login:password@/db_placeholder?host=host1&host=host2",
database_name=database_name,
drivername=drivername,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_decorators.py → tests/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlalchemy.exc import DBAPIError
from sqlalchemy.ext import asyncio as sa_async

from db_try.decorators import postgres_retry
from db_try.retry import postgres_retry


@pytest.mark.parametrize(
Expand Down
Loading