mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-23 08:47:14 +01:00
try adding some debug things
This commit is contained in:
parent
92851a4c7b
commit
ebb71ababb
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue