-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to v1.18 + added unit test checking get_stock_earnings_data() …
…for #164
- Loading branch information
connorsanders
committed
Dec 9, 2023
1 parent
b33f5f4
commit 29177c6
Showing
5 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|