From e1605aefb062526d791d3f967a785e2dae1e74c8 Mon Sep 17 00:00:00 2001 From: Krzysztof Magusiak Date: Sat, 30 Dec 2023 14:18:12 +0100 Subject: [PATCH] Disable runbot tests The server is not accessible for jsonrpc calls. --- .github/workflows/python-lint-test.yml | 2 +- tests/runbot/conftest.py | 38 +++----------------------- 2 files changed, 5 insertions(+), 35 deletions(-) diff --git a/.github/workflows/python-lint-test.yml b/.github/workflows/python-lint-test.yml index 3497202..eed4233 100644 --- a/.github/workflows/python-lint-test.yml +++ b/.github/workflows/python-lint-test.yml @@ -36,7 +36,7 @@ jobs: pip install -r requirements.txt - name: Run pytest run: | - pytest --doctest-modules + pytest --doctest-modules -m "not runbot" - name: Run mypy run: | mypy --install-types --non-interactive . diff --git a/tests/runbot/conftest.py b/tests/runbot/conftest.py index fd22500..ed6ef00 100644 --- a/tests/runbot/conftest.py +++ b/tests/runbot/conftest.py @@ -1,51 +1,21 @@ import logging -import re +import os import pytest -import requests import odoo_connect @pytest.fixture(scope='session') def connect_params(): - runbot_url = 'https://runbot.odoo.com/' - runbot_page = requests.get(runbot_url) - odoo_url = "http://localhost:8069/" + # runbot is no longer accessible for jsonrpc, + # try to get the server from the environment + odoo_url = os.environ.get("ODOO_URL", "http://localhost:8069/") version = "unknown" - # we don't use (yet) any XML parsing to keep dependencies simple - # find one of the following and select a URL - # - bundle href (row and name of the branch) - # - link to a sign-in action (avoid documentation and take only stable versions) - for m in re.finditer( - r'href="/runbot/(bundle)[^<]+([^<]*)' - r'|