File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11from db_try .connections import build_connection_factory
2- from db_try .decorators import postgres_retry
3- from db_try .helpers import build_db_dsn , is_dsn_multihost
2+ from db_try .dsn import build_db_dsn , is_dsn_multihost
3+ from db_try .retry import postgres_retry
44from db_try .transaction import Transaction
55
66
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11import typing
22
3- from db_try import helpers , is_dsn_multihost
3+ from db_try import build_db_dsn , is_dsn_multihost
44
55
66def test_build_db_dsn () -> None :
77 database_name : typing .Final = "new_db_name"
88 drivername : typing .Final = "postgresql+asyncpg"
9- result_dsn : typing .Final = helpers . build_db_dsn (
9+ result_dsn : typing .Final = build_db_dsn (
1010 db_dsn = "postgresql://login:password@/db_placeholder?host=host1&host=host2" ,
1111 database_name = database_name ,
1212 drivername = drivername ,
Original file line number Diff line number Diff line change 33from sqlalchemy .exc import DBAPIError
44from sqlalchemy .ext import asyncio as sa_async
55
6- from db_try .decorators import postgres_retry
6+ from db_try .retry import postgres_retry
77
88
99@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments