Skip to content

Commit

Permalink
Update to v1.18 + added unit test checking get_stock_earnings_data() …
Browse files Browse the repository at this point in the history
…for #164
  • Loading branch information
connorsanders committed Dec 9, 2023
1 parent b33f5f4 commit 29177c6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@
1.16 07/17/2023 -- Minor code cleanup in test_yahoofinancials.py.
1.16 07/17/2023 -- Fixed HTTP 401 error when executing get_current_price() as reported in #152.
1.17 10/30/2023 -- Added a fix for 404 error reported in #157.
1.18 12/12/2023 -- Merged in branch from shaunpatterson to fix #164.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ A python module that returns stock, cryptocurrency, forex, mutual fund, commodit
.. image:: https://static.pepy.tech/badge/yahoofinancials/week
:target: https://pepy.tech/project/yahoofinancials

Current Version: v1.17
Current Version: v1.18

Version Released: 10/30/2023
Version Released: 12/09/2023

Report any bugs by opening an issue here: https://github.com/JECSand/yahoofinancials/issues

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

setup(
name='yahoofinancials',
version='1.17',
version='1.18',
description='A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance',
long_description=long_description,
url='https://github.com/JECSand/yahoofinancials',
download_url='https://github.com/JECSand/yahoofinancials/archive/1.17.tar.gz',
download_url='https://github.com/JECSand/yahoofinancials/archive/1.18.tar.gz',
author='Connor Sanders',
author_email='[email protected]',
license='MIT',
Expand Down
10 changes: 8 additions & 2 deletions test/test_yahoofinancials.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# YahooFinancials Unit Tests v1.17
# Version Released: 10/30/2023
# YahooFinancials Unit Tests v1.18
# Version Released: 12/09/2023
# Author: Connor Sanders
# Tested on Python 3.7, 3.8, 3.9, 3.10, and 3.11
# Copyright (c) 2023 Connor Sanders <[email protected]>
Expand Down Expand Up @@ -165,6 +165,12 @@ def test_yf_module_methods(self):
else:
self.assertEqual(False, True)

# Stock Earnings data check
if isinstance(self.test_yf_stock_single.get_stock_earnings_data().get("C").get("earningsChart").get("quarterly")[0].get("actual"), float):
self.assertEqual(True, True)
else:
self.assertEqual(False, True)


if __name__ == "__main__":
t_main()
4 changes: 2 additions & 2 deletions yahoofinancials/yf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
==============================
The Yahoo Financials Module
Version: 1.17
Version: 1.18
==============================
Author: Connor Sanders
Email: [email protected]
Version Released: 10/30/2023
Version Released: 12/09/2023
Tested on Python 3.7, 3.8, 3.9, 3.10, and 3.11
Copyright (c) 2023 Connor Sanders
Expand Down

0 comments on commit 29177c6

Please sign in to comment.