From b2e7a74d432e099130a6f8f1a517fa762af56771 Mon Sep 17 00:00:00 2001 From: Alexey Snigir Date: Tue, 6 Aug 2024 17:08:23 +0200 Subject: [PATCH] urllib3==1.26.19 --- vizro-ai/hatch.toml | 3 ++- vizro-ai/pyproject.toml | 2 +- vizro-ai/tests/integration/test_dashboard.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vizro-ai/hatch.toml b/vizro-ai/hatch.toml index c2d389017..64d323955 100644 --- a/vizro-ai/hatch.toml +++ b/vizro-ai/hatch.toml @@ -20,7 +20,8 @@ dependencies = [ "jupyter", "langchain_community", "dash[testing]", - "chromedriver-autoinstaller>=0.6.4" + "chromedriver-autoinstaller>=0.6.4", + "urllib3==1.26.19" ] [envs.default.env-vars] diff --git a/vizro-ai/pyproject.toml b/vizro-ai/pyproject.toml index d6c027b84..5d583bf37 100644 --- a/vizro-ai/pyproject.toml +++ b/vizro-ai/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [ "python-dotenv>=1.0.0", # TODO decide env var management to see if we need this "vizro>=0.1.4", # TODO set upper bound later "ipython>=8.10.0", # not directly required, pinned by Snyk to avoid a vulnerability: https://app.snyk.io/vuln/SNYK-PYTHON-IPYTHON-3318382 - "urllib3>=2.0.7", # not directly required, pinned by Snyk to avoid a vulnerability: https://security.snyk.io/vuln/SNYK-PYTHON-URLLIB3-6002459 +# "urllib3>=2.0.7", # not directly required, pinned by Snyk to avoid a vulnerability: https://security.snyk.io/vuln/SNYK-PYTHON-URLLIB3-6002459 "aiohttp>=3.9.2", # not directly required, pinned by Snyk to avoid a vulnerability: https://security.snyk.io/vuln/SNYK-PYTHON-AIOHTTP-6209407 "langchain-core>=0.1.31" # not directly required, pinned by Snyk to avoid a vulnerability: https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAINCORE-6370598 ] diff --git a/vizro-ai/tests/integration/test_dashboard.py b/vizro-ai/tests/integration/test_dashboard.py index 9b3990d89..c78ac1dcd 100644 --- a/vizro-ai/tests/integration/test_dashboard.py +++ b/vizro-ai/tests/integration/test_dashboard.py @@ -23,7 +23,7 @@ def setup_test_environment(): @pytest.mark.filterwarnings("ignore::langchain_core._api.beta_decorator.LangChainBetaWarning") @pytest.mark.filterwarnings("ignore::UserWarning") -@pytest.mark.filterwarnings("ignore::DeprecationWarning") +@pytest.mark.filterwarnings("ignore:HTTPResponse.getheader()") def test_simple_dashboard(dash_duo): input_text = """ I need a page with 1 table. @@ -48,6 +48,6 @@ def test_simple_dashboard(dash_duo): """ dashboard = vizro_ai.dashboard([df1, df2], input_text) - app = Vizro().build(dashboard).run() + app = Vizro().build(dashboard).dash dash_duo.start_server(app) assert dash_duo.get_logs() == []