Remove debug assertions

This commit is contained in:
Hinrich Mahler 2024-12-31 10:56:44 +01:00
parent a98bc65412
commit f992b7e6dd

View file

@ -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