Skip to content

Commit

Permalink
included search results data retrieval in tests/
Browse files Browse the repository at this point in the history
- since both recent and historical data retrieval functions from search results have not been tested, they have been included in the tests/ so to update codecov
  • Loading branch information
Alvaro Bartolome committed Nov 20, 2019
1 parent 258d7a5 commit 7ace4ac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_investpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,14 @@ def test_search():
]

for param in params:
investpy.search_text(text=param['text'])
results = investpy.search_text(text=param['text'])

for result in results[:2]:
try:
result.retrieve_recent_data()
result.retrieve_historical_data(from_date='01/01/2018', to_date='01/01/2019')
except:
pass


if __name__ == '__main__':
Expand Down

0 comments on commit 7ace4ac

Please sign in to comment.