From bc58f9bbf0d4bf76c288aa07f5f8d71dac7868ff Mon Sep 17 00:00:00 2001 From: Tim Paine Date: Fri, 21 Jun 2019 14:34:59 -0400 Subject: [PATCH] fixes #49 --- Makefile | 2 +- tests/test_stocks.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 86d22ee..7f274ad 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ tests: ## Clean and Make unit tests python3 -m pytest -v tests --cov=pyEX test: lint ## run the tests for travis CI - @ python3 -m pytest -v tests --cov=pyEX + IEX_TOKEN=Tpk_ecc89ddf30a611e9958142010a80043c python3 -m pytest -v tests --cov=pyEX lint: ## run linter flake8 pyEX diff --git a/tests/test_stocks.py b/tests/test_stocks.py index 87ff326..896d53b 100644 --- a/tests/test_stocks.py +++ b/tests/test_stocks.py @@ -83,8 +83,7 @@ def test_spreadDF(self): mock.return_value = MagicMock() mock.return_value.status_code = 200 mock.return_value.json = MagicMock(return_value=[]) - - spreadDF(SYMBOL) + spreadDF(SYMBOL) def test_volumeByVenue(self): from pyEX import volumeByVenue @@ -99,8 +98,7 @@ def test_volumeByVenueDF(self): mock.return_value = MagicMock() mock.return_value.status_code = 200 mock.return_value.json = MagicMock(return_value=[]) - - volumeByVenueDF(SYMBOL) + volumeByVenueDF(SYMBOL) def test_delayedQuote(self): from pyEX import delayedQuote