From 4c9f95ca6f7e25b78e4f292cabbb7cb439453dcd Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 25 May 2023 23:34:24 +0200 Subject: [PATCH] Hide pytest warnings from the jh3 + sqlalchemy 2 combination --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e20a613..90aec52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,11 @@ target_version = [ addopts = "--verbose --color=yes --durations=10" asyncio_mode = "auto" testpaths = ["tests"] +# warnings we can safely ignore stemming from jupyterhub 3 + sqlalchemy 2 +filterwarnings = [ + "ignore:.*The new signature is "def engine_connect\(conn\)"*:sqlalchemy.exc.SADeprecationWarning", + "ignore:.*The new signature is "def engine_connect\(conn\)"*:sqlalchemy.exc.SAWarning", +] # tbump is used to simplify and standardize the release process when updating