-
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.
fix for #152 and minor test code cleanup
- Loading branch information
connorsanders
committed
Jul 18, 2023
1 parent
0a1269e
commit dc6d0f3
Showing
6 changed files
with
20 additions
and
21 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.15', | ||
version='1.16', | ||
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.15.tar.gz', | ||
download_url='https://github.com/JECSand/yahoofinancials/archive/1.16.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.15 | ||
# Version Released: 06/21/2023 | ||
# YahooFinancials Unit Tests v1.16 | ||
# Version Released: 07/17/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]> | ||
|
@@ -19,20 +19,17 @@ def check_fundamental(test_data, test_type): | |
if test_type == 'bal': | ||
if 'balanceSheetHistoryQuarterly' in test_data and test_data['balanceSheetHistoryQuarterly']['C'] is not None: | ||
return True | ||
else: | ||
return False | ||
return False | ||
elif test_type == 'inc': | ||
if 'incomeStatementHistoryQuarterly' in test_data and \ | ||
test_data['incomeStatementHistoryQuarterly']['C'] is not None: | ||
return True | ||
else: | ||
return False | ||
return False | ||
elif test_type == 'all': | ||
if 'balanceSheetHistoryQuarterly' in test_data and 'incomeStatementHistoryQuarterly' in test_data and \ | ||
'cashflowStatementHistoryQuarterly' in test_data: | ||
return True | ||
else: | ||
return False | ||
return False | ||
|
||
|
||
# Main Test Module Class | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
""" | ||
============================== | ||
The Yahoo Financials Module | ||
Version: 1.15 | ||
Version: 1.16 | ||
============================== | ||
Author: Connor Sanders | ||
Email: [email protected] | ||
Version Released: 06/21/2023 | ||
Version Released: 07/17/2023 | ||
Tested on Python 3.7, 3.8, 3.9, 3.10, and 3.11 | ||
Copyright (c) 2023 Connor Sanders | ||
|
@@ -44,7 +44,7 @@ | |
from yahoofinancials.calcs import num_shares_outstanding, eps | ||
from yahoofinancials.etl import YahooFinanceETL | ||
|
||
__version__ = "1.15" | ||
__version__ = "1.16" | ||
__author__ = "Connor Sanders" | ||
|
||
|
||
|