try adding some debug things

This commit is contained in:
Hinrich Mahler 2024-12-31 10:50:18 +01:00
parent 92851a4c7b
commit ebb71ababb
2 changed files with 12 additions and 2 deletions

View file

@ -28,7 +28,7 @@ def env_var_2_bool(env_var: object) -> bool:
GITHUB_ACTION: bool = env_var_2_bool(os.getenv("GITHUB_ACTION", "false"))
TEST_WITH_OPT_DEPS: bool = env_var_2_bool(os.getenv("TEST_WITH_OPT_DEPS", "")) or (
TEST_WITH_OPT_DEPS: bool = env_var_2_bool(os.getenv("TEST_WITH_OPT_DEPS", "false")) or (
# on local setups, we usually want to test with optional dependencies
not GITHUB_ACTION
)

View file

@ -18,6 +18,7 @@
# along with this program. If not, see [http://www.gnu.org/licenses/].
import asyncio
import logging
import os
import sys
import zoneinfo
from pathlib import Path
@ -40,12 +41,21 @@ from telegram.ext import Defaults
from tests.auxil.build_messages import DATE
from tests.auxil.ci_bots import BOT_INFO_PROVIDER, JOB_INDEX
from tests.auxil.constants import PRIVATE_KEY, TEST_TOPIC_ICON_COLOR, TEST_TOPIC_NAME
from tests.auxil.envvars import GITHUB_ACTION, RUN_TEST_OFFICIAL, TEST_WITH_OPT_DEPS
from tests.auxil.envvars import (
GITHUB_ACTION,
RUN_TEST_OFFICIAL,
TEST_WITH_OPT_DEPS,
env_var_2_bool,
)
from tests.auxil.files import data_file
from tests.auxil.networking import NonchalantHttpxRequest
from tests.auxil.pytest_classes import PytestBot, make_bot
if TEST_WITH_OPT_DEPS:
assert GITHUB_ACTION is True
assert (env_var_2_bool(os.getenv("TEST_WITH_OPT_DEPS", "false")) or not GITHUB_ACTION) is True
assert os.getenv("TEST_WITH_OPT_DEPS", "false") == "true"
assert env_var_2_bool(os.getenv("TEST_WITH_OPT_DEPS", "false")) is True
import pytz