Fix test case

This commit is contained in:
97Pedrito 2015-08-19 22:15:40 +02:00
parent 8412be1336
commit ee0ff8b1fb
1 changed files with 3 additions and 2 deletions

View File

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