Stub Tests

This commit is contained in:
Cameron Yick
2017-08-24 22:30:07 -04:00
parent 1831a3f50d
commit 9a5d7a18f7

View File

@@ -5,8 +5,7 @@
import pytest import pytest
from tiingo import TiingoClient
from tiingo import tiingo
@pytest.fixture @pytest.fixture
@@ -15,7 +14,8 @@ def response():
See more at: http://doc.pytest.org/en/latest/fixture.html 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') # 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.""" """Sample pytest test function with the pytest fixture as an argument."""
# from bs4 import BeautifulSoup # from bs4 import BeautifulSoup
# assert 'GitHub' in BeautifulSoup(response.content).title.string # assert 'GitHub' in BeautifulSoup(response.content).title.string
assert len(response) > 0