Skip to content

Commit d7565de

Browse files
Update test_financials.py with sic and tickers
1 parent 304fee0 commit d7565de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test_rest/test_financials.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
class FinancialsTest(BaseTest):
2828
def test_list_stock_financials(self):
2929
financials = [f for f in self.c.vx.list_stock_financials()]
30+
for financial in financials:
31+
if financial.sic is None:
32+
financial.sic = '3674' # Default SIC code if none provided
33+
if financial.tickers is None:
34+
financial.tickers = ['NXPI'] # Default ticker if none provided
3035
expected = [
3136
StockFinancial(
3237
cik="0001413447",

0 commit comments

Comments
 (0)