File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
packages/settings-library Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def dsn_with_async_sqlalchemy(self) -> str:
6969 port = f"{ self .POSTGRES_PORT } " ,
7070 path = f"/{ self .POSTGRES_DB } " ,
7171 )
72- return self . _update_query ( dsn )
72+ return dsn
7373
7474 @cached_property
7575 def dsn_with_query (self ) -> str :
Original file line number Diff line number Diff line change 33# pylint: disable=unused-variable
44
55
6- from urllib .parse import parse_qsl , urlparse
6+ from urllib .parse import urlparse
77
88import pytest
99from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
@@ -63,7 +63,6 @@ def test_dsn_with_async_sqlalchemy_has_query(
6363 settings = PostgresSettings ()
6464
6565 parsed_url = urlparse (settings .dsn_with_async_sqlalchemy )
66- query = dict ( parse_qsl ( parsed_url .query ) )
66+ assert parsed_url .scheme . split ( "+" ) == ( "postgres" , "asyncpg" )
6767
68- assert query
69- assert query ["application_name" ] == settings .POSTGRES_CLIENT_NAME
68+ assert not parsed_url .query
You can’t perform that action at this time.
0 commit comments