add pytest to sys PATH

This commit is contained in:
2022-08-15 00:27:16 +03:00
parent 6ad60f210f
commit 46aa577da8
3 changed files with 8 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
import asyncio
import sys
from pathlib import Path
from typing import Any
import aresponses
@@ -8,6 +10,9 @@ from aiogram import Bot
BOT_ID = 123456789
TOKEN = f'{BOT_ID}:AABBCCDDEEFFaabbccddeeff-1234567890'
# include pytest directory in PATH
sys.path.append(Path(__file__).parent.parent.as_posix())
class FakeTelegram(aresponses.ResponsesMockServer):
def __init__(