From 5c620cf3e5c91f91ef7e595eddae7137510e1c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Cl=C3=A9rice?= Date: Wed, 24 Jan 2024 09:06:43 +0100 Subject: [PATCH] Update dependencies to match Dependabot --- .github/workflows/test.yml | 2 +- chromedriver.sh | 9 +++++---- requirements.txt | 10 +++++----- tests/test_selenium/base.py | 2 -- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7cf84d6..05b3515e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.10] steps: - uses: actions/checkout@v2 diff --git a/chromedriver.sh b/chromedriver.sh index 536e7b59..a0e7bf01 100644 --- a/chromedriver.sh +++ b/chromedriver.sh @@ -1,9 +1,10 @@ #!/bin/sh set -ex -wget -N https://chromedriver.storage.googleapis.com/101.0.4951.41/chromedriver_linux64.zip -P ~/ -unzip ~/chromedriver_linux64.zip -d ~/ -rm ~/chromedriver_linux64.zip -sudo mv -f ~/chromedriver /usr/local/share/ +# Use your CHROME version to find the URI https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_120.0.6099 +wget -N https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6099.109/linux64/chromedriver-linux64.zip -P ~/ +unzip ~/chromedriver-linux64.zip -d ~/ +rm ~/chromedriver-linux64.zip +sudo mv -f ~/chromedriver-linux64/chromedriver /usr/local/share/ sudo chmod +x /usr/local/share/chromedriver sudo rm /usr/local/bin/chromedriver || echo "Nothing to remove" sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 92354f8e..c3250891 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,19 +1,19 @@ # Main components -Flask==2.1.2 -Jinja2==3.1.2 -Werkzeug==2.2.3 +Flask<3.0.0 +Jinja2 +Werkzeug # DB Flask-SQLAlchemy==2.5.1 SQLAlchemy==1.4.36 # Forms -Flask-WTF==1.0.1 +Flask-WTF==1.2.1 WTForms==3.0.1 WTForms-SQLAlchemy~=0.3 # Extensions -Flask-Login==0.6.0 +Flask-Login==0.6.3 Flask-Mail==0.9.1 email_validator<2.0.0 Flask-Compress==1.12 diff --git a/tests/test_selenium/base.py b/tests/test_selenium/base.py index f2582988..04062edb 100644 --- a/tests/test_selenium/base.py +++ b/tests/test_selenium/base.py @@ -184,9 +184,7 @@ def create_driver(self, options=None): options = Options() options.add_argument("--headless") options.add_argument("--disable-gpu") - # options.add_experimental_option('w3c', False) - options.set_capability("loggingPrefs", {'browser': 'ALL'}) options.set_capability("goog:loggingPrefs", {'browser': 'ALL'}) self.driver = webdriver.Chrome(options=options) self.driver.set_window_size(1920, 1080)