mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix test case
This commit is contained in:
parent
8412be1336
commit
ee0ff8b1fb
@ -1,5 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
sys.path.append('../')
|
||||
|
||||
import time
|
||||
import pytest
|
||||
import os
|
||||
@ -8,14 +10,13 @@ import telebot
|
||||
from telebot import types
|
||||
from telebot import apihelper
|
||||
|
||||
sys.path.append('../')
|
||||
|
||||
should_skip = 'TOKEN' and 'CHAT_ID' not in os.environ
|
||||
|
||||
if not should_skip:
|
||||
TOKEN = os.environ['TOKEN']
|
||||
CHAT_ID = os.environ['CHAT_ID']
|
||||
|
||||
|
||||
@pytest.mark.skipif(should_skip, reason="No environment variables configured")
|
||||
class TestTeleBot:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user