mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 11:43:50 +01:00
Remove debug assertions
This commit is contained in:
parent
a98bc65412
commit
f992b7e6dd
1 changed files with 1 additions and 11 deletions
|
@ -18,7 +18,6 @@
|
|||
# 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
|
||||
|
@ -41,21 +40,12 @@ 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_ACTIONS,
|
||||
RUN_TEST_OFFICIAL,
|
||||
TEST_WITH_OPT_DEPS,
|
||||
env_var_2_bool,
|
||||
)
|
||||
from tests.auxil.envvars import GITHUB_ACTIONS, RUN_TEST_OFFICIAL, TEST_WITH_OPT_DEPS
|
||||
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_ACTIONS is True
|
||||
assert (env_var_2_bool(os.getenv("TEST_WITH_OPT_DEPS", "false")) or not GITHUB_ACTIONS) 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