From 9a5d7a18f783ccbae43e3281f6a21f0101f1b6a5 Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Thu, 24 Aug 2017 22:30:07 -0400 Subject: [PATCH] Stub Tests --- tests/test_tiingo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_tiingo.py b/tests/test_tiingo.py index 9124836..47b5641 100644 --- a/tests/test_tiingo.py +++ b/tests/test_tiingo.py @@ -5,8 +5,7 @@ import pytest - -from tiingo import tiingo +from tiingo import TiingoClient @pytest.fixture @@ -15,7 +14,8 @@ def response(): See more at: http://doc.pytest.org/en/latest/fixture.html """ - # import requests + t = TiingoClient() + return t.get_ticker_price("GOOGL") # return requests.get('https://github.com/audreyr/cookiecutter-pypackage') @@ -23,3 +23,4 @@ def test_content(response): """Sample pytest test function with the pytest fixture as an argument.""" # from bs4 import BeautifulSoup # assert 'GitHub' in BeautifulSoup(response.content).title.string + assert len(response) > 0