mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-18 12:24:18 +01:00
Stub Tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user