1
0
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:
97Pedrito 2015-08-19 22:15:40 +02:00
parent 8412be1336
commit ee0ff8b1fb

View File

@ -1,5 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
sys.path.append('../')
import time import time
import pytest import pytest
import os import os
@ -8,14 +10,13 @@ import telebot
from telebot import types from telebot import types
from telebot import apihelper from telebot import apihelper
sys.path.append('../')
should_skip = 'TOKEN' and 'CHAT_ID' not in os.environ should_skip = 'TOKEN' and 'CHAT_ID' not in os.environ
if not should_skip: if not should_skip:
TOKEN = os.environ['TOKEN'] TOKEN = os.environ['TOKEN']
CHAT_ID = os.environ['CHAT_ID'] CHAT_ID = os.environ['CHAT_ID']
@pytest.mark.skipif(should_skip, reason="No environment variables configured") @pytest.mark.skipif(should_skip, reason="No environment variables configured")
class TestTeleBot: class TestTeleBot: