Skip to content

Commit

Permalink
Merge branch 'release/1.3.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
RomelTorres committed Oct 18, 2017
2 parents 0012a1d + f7f80d7 commit 4cbebdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ install:
- pip install simplejson
- pip install pandas==0.19.2
script:
nosetests
nosetests --nocapture

after_sucess:
codecov
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
# built documents.
#
# The short X.Y version.
version = u'1.3.3'
version = u'1.3.6'
# The full version, including alpha/beta/rc tags.
release = u'1.3.3'
release = u'1.3.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name='alpha_vantage',
version='1.3.5',
version='1.3.6',
author='Romel J. Torres',
author_email='[email protected]',
license='MIT',
Expand Down
8 changes: 6 additions & 2 deletions test_alpha_vantage/testalphavantage.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class TestAlphaVantage(unittest.TestCase):
_API_KEY_TEST = os.environ['API_KEY']
_API_EQ_NAME_TEST = 'MSFT'

def setUp(self):
"""
Wait some time before running each call again.
"""
time.sleep(0.6)

def _assert_result_is_format(self, func, output_format='json', **args):
"""Check that the data and meta data object are dictionaries
Expand All @@ -32,8 +38,6 @@ def _assert_result_is_format(self, func, output_format='json', **args):
stime = timeit.default_timer()
data, meta_data = func(**args)
elapsed = timeit.default_timer() - stime
# TODO: WORKaround to not call the api that often when testing
time.sleep(1.5)
print('Function: {} - Format: {} - Took: {}'.format(func.__name__,
output_format,
elapsed))
Expand Down

0 comments on commit 4cbebdb

Please sign in to comment.