Skip to content

Commit

Permalink
fixes wrong mock
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 20, 2022
1 parent b8231cf commit 64a467b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/web/server/tests/unit/with_dbs/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from servicelib.aiohttp.long_running_tasks.server import TaskProgress
from servicelib.common_aiopg_utils import DSN
from settings_library.redis import RedisSettings
from simcore_postgres_database.errors import OperationalError
from simcore_service_webserver import catalog
from simcore_service_webserver._constants import INDEX_RESOURCE_NAME
from simcore_service_webserver.application import create_application
Expand Down Expand Up @@ -546,7 +545,7 @@ async def print_mail_to_stdout(*args):

monkeypatch.setattr(
simcore_service_webserver.login.utils_email,
"compose_mail",
"_compose_mail",
print_mail_to_stdout,
)

Expand All @@ -557,6 +556,6 @@ def _is_postgres_responsive(url):
engine = sa.create_engine(url)
conn = engine.connect()
conn.close()
except OperationalError:
except sa.exc.OperationalError:
return False
return True

0 comments on commit 64a467b

Please sign in to comment.