From ee0ff8b1fb1c067b48e0dbe92a698add1fc5b78e Mon Sep 17 00:00:00 2001 From: 97Pedrito Date: Wed, 19 Aug 2015 22:15:40 +0200 Subject: [PATCH] Fix test case --- tests/test_telebot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_telebot.py b/tests/test_telebot.py index de704e7..989563b 100644 --- a/tests/test_telebot.py +++ b/tests/test_telebot.py @@ -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: