Skip to content

Commit 2515ce0

Browse files
Updating Test Cases
1 parent 4513126 commit 2515ce0

11 files changed

+418
-405
lines changed

src/tests/test_address_response.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
88
The version of the OpenAPI document: v1
99
10-
Generated by: https://openapi-generator.tech
11-
"""
1210
11+
"""
1312

1413
from __future__ import absolute_import
1514

@@ -20,6 +19,8 @@
2019
from src.IntelligentStockMarketAPI.models.address_response import AddressResponse # noqa: E501
2120
from src.IntelligentStockMarketAPI.rest import ApiException
2221

22+
23+
# noinspection PyMethodMayBeStatic
2324
class TestAddressResponse(unittest.TestCase):
2425
"""AddressResponse unit test stubs"""
2526

@@ -35,15 +36,15 @@ def make_instance(self, include_optional):
3536
params are included, when True both required and
3637
optional params are included """
3738
# model = src.IntelligentStockMarketAPI.models.address_response.AddressResponse() # noqa: E501
38-
if include_optional :
39+
if include_optional:
3940
return AddressResponse(
40-
message = '0',
41-
payload = None,
42-
status = True
41+
message='0',
42+
payload=None,
43+
status=True
4344
)
44-
else :
45+
else:
4546
return AddressResponse(
46-
)
47+
)
4748

4849
def testAddressResponse(self):
4950
"""Test AddressResponse"""

src/tests/test_analyst.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
88
The version of the OpenAPI document: v1
99
10-
Generated by: https://openapi-generator.tech
1110
"""
1211

13-
1412
from __future__ import absolute_import
1513

1614
import unittest
1715
import datetime
1816

19-
imporsrc.IntelligentStockMarketAPI
20-
from src.IntelligentStockMarketAPI.models.analyst import Analyst # noqa: E501
21-
from src.IntelligentStockMarketAPI.rest import ApiException
17+
import IntelligentStockMarketAPI
18+
from IntelligentStockMarketAPI.models.analyst import Analyst # noqa: E501
19+
from IntelligentStockMarketAPI.rest import ApiException
20+
2221

22+
# noinspection PyMethodMayBeStatic
2323
class TestAnalyst(unittest.TestCase):
2424
"""Analyst unit test stubs"""
2525

@@ -35,20 +35,20 @@ def make_instance(self, include_optional):
3535
params are included, when True both required and
3636
optional params are included """
3737
# model = src.IntelligentStockMarketAPI.models.analyst.Analyst() # noqa: E501
38-
if include_optional :
38+
if include_optional:
3939
return Analyst(
40-
buy = 56,
41-
fundamental_id = '0',
42-
hold = 56,
43-
rating = 1.337,
44-
sell = 56,
45-
strong_buy = 56,
46-
strong_sell = 56,
47-
target_price = 1.337
40+
buy=56,
41+
fundamental_id='0',
42+
hold=56,
43+
rating=1.337,
44+
sell=56,
45+
strong_buy=56,
46+
strong_sell=56,
47+
target_price=1.337
4848
)
49-
else :
49+
else:
5050
return Analyst(
51-
)
51+
)
5252

5353
def testAnalyst(self):
5454
"""Test Analyst"""

src/tests/test_annual_balance_sheet.py

Lines changed: 67 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

13-
1413
from __future__ import absolute_import
1514

1615
import unittest
1716
import datetime
1817

19-
import src.IntelligentStockMarketAPI
20-
from src.IntelligentStockMarketAPI.models.annual_balance_sheet import AnnualBalanceSheet # noqa: E501
21-
from src.IntelligentStockMarketAPI.rest import ApiException
18+
import IntelligentStockMarketAPI
19+
from IntelligentStockMarketAPI.models.annual_balance_sheet import AnnualBalanceSheet # noqa: E501
20+
from IntelligentStockMarketAPI.rest import ApiException
21+
2222

23+
# noinspection PyMethodMayBeStatic
2324
class TestAnnualBalanceSheet(unittest.TestCase):
2425
"""AnnualBalanceSheet unit test stubs"""
2526

@@ -35,71 +36,71 @@ def make_instance(self, include_optional):
3536
params are included, when True both required and
3637
optional params are included """
3738
# model = src.IntelligentStockMarketAPI.models.annual_balance_sheet.AnnualBalanceSheet() # noqa: E501
38-
if include_optional :
39+
if include_optional:
3940
return AnnualBalanceSheet(
40-
balance_sheet = src.IntelligentStockMarketAPI.models._balance_sheet._BalanceSheet(
41-
accounts_payable = 1.337,
42-
accumulated_amortization = 1.337,
43-
accumulated_depreciation = 1.337,
44-
accumulated_other_comprehensive_income = 1.337,
45-
additional_paid_in_capital = 1.337,
46-
balance_sheet_id = '0',
47-
capital_lease_obligations = 1.337,
48-
capital_surplus = 1.337,
49-
cash = 1.337,
50-
cash_and_short_term_investments = 1.337,
51-
common_stock = 1.337,
52-
common_stock_shares_outstanding = 1.337,
53-
common_stock_total_equity = 1.337,
54-
currency = '0',
55-
date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
56-
deferred_long_term_liability = 1.337,
57-
earnings_assets = 1.337,
58-
fundamental_id = '0',
59-
good_will = 1.337,
60-
intangible_assets = 1.337,
61-
inventory = 1.337,
62-
long_term_debt = 1.337,
63-
long_term_debt_total = 1.337,
64-
long_term_investments = 1.337,
65-
negative_good_will = 1.337,
66-
net_debt = 1.337,
67-
net_invested_capital = 1.337,
68-
net_receivables = 1.337,
69-
net_tangible_assets = 1.337,
70-
networking_capital = 1.337,
71-
non_controlling_interest_in_consolidated_equity = 1.337,
72-
non_current_assets_other = 1.337,
73-
non_current_liabilities_other = 1.337,
74-
non_current_liabilities_total = 1.337,
75-
other_assets = 1.337,
76-
other_current_assets = 1.337,
77-
other_current_liability = 1.337,
78-
other_liability = 1.337,
79-
other_stock_holder_equity = 1.337,
80-
preferred_stock_redeemable = 1.337,
81-
preferred_stock_total_equity = 1.337,
82-
property_plant_and_equipment_gross = 1.337,
83-
property_plant_equipment = 1.337,
84-
retained_earnings = 1.337,
85-
retained_earnings_total_equity = 1.337,
86-
short_long_term_debt_total = 1.337,
87-
short_term_debt = 1.337,
88-
short_term_investments = 1.337,
89-
temporary_equity_redeemable_non_controlling_interests = 1.337,
90-
total_assets = 1.337,
91-
total_current_assets = 1.337,
92-
total_current_liabilities = 1.337,
93-
total_liability = 1.337,
94-
total_permanent_equity = 1.337,
95-
total_stock_holder_equity = 1.337,
96-
treasury_stock = 1.337,
97-
warrants = 1.337, ),
98-
filing_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date()
41+
balance_sheet= IntelligentStockMarketAPI.models.BalanceSheet(
42+
accounts_payable=1.337,
43+
accumulated_amortization=1.337,
44+
accumulated_depreciation=1.337,
45+
accumulated_other_comprehensive_income=1.337,
46+
additional_paid_in_capital=1.337,
47+
balance_sheet_id='0',
48+
capital_lease_obligations=1.337,
49+
capital_surplus=1.337,
50+
cash=1.337,
51+
cash_and_short_term_investments=1.337,
52+
common_stock=1.337,
53+
common_stock_shares_outstanding=1.337,
54+
common_stock_total_equity=1.337,
55+
currency='0',
56+
date=datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
57+
deferred_long_term_liability=1.337,
58+
earnings_assets=1.337,
59+
fundamental_id='0',
60+
good_will=1.337,
61+
intangible_assets=1.337,
62+
inventory=1.337,
63+
long_term_debt=1.337,
64+
long_term_debt_total=1.337,
65+
long_term_investments=1.337,
66+
negative_good_will=1.337,
67+
net_debt=1.337,
68+
net_invested_capital=1.337,
69+
net_receivables=1.337,
70+
net_tangible_assets=1.337,
71+
networking_capital=1.337,
72+
non_controlling_interest_in_consolidated_equity=1.337,
73+
non_current_assets_other=1.337,
74+
non_current_liabilities_other=1.337,
75+
non_current_liabilities_total=1.337,
76+
other_assets=1.337,
77+
other_current_assets=1.337,
78+
other_current_liability=1.337,
79+
other_liability=1.337,
80+
other_stock_holder_equity=1.337,
81+
preferred_stock_redeemable=1.337,
82+
preferred_stock_total_equity=1.337,
83+
property_plant_and_equipment_gross=1.337,
84+
property_plant_equipment=1.337,
85+
retained_earnings=1.337,
86+
retained_earnings_total_equity=1.337,
87+
short_long_term_debt_total=1.337,
88+
short_term_debt=1.337,
89+
short_term_investments=1.337,
90+
temporary_equity_redeemable_non_controlling_interests=1.337,
91+
total_assets=1.337,
92+
total_current_assets=1.337,
93+
total_current_liabilities=1.337,
94+
total_liability=1.337,
95+
total_permanent_equity=1.337,
96+
total_stock_holder_equity=1.337,
97+
treasury_stock=1.337,
98+
warrants=1.337, ),
99+
filing_date=datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date()
99100
)
100-
else :
101+
else:
101102
return AnnualBalanceSheet(
102-
)
103+
)
103104

104105
def testAnnualBalanceSheet(self):
105106
"""Test AnnualBalanceSheet"""

src/tests/test_annual_balance_sheet_response.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
import unittest
1616
import datetime
1717

18-
import src.IntelligentStockMarketAPI
19-
from src.IntelligentStockMarketAPI.models.annual_balance_sheet_response import AnnualBalanceSheetResponse # noqa: E501
20-
from src.IntelligentStockMarketAPI.rest import ApiException
18+
import IntelligentStockMarketAPI
19+
from IntelligentStockMarketAPI.models.annual_balance_sheet_response import AnnualBalanceSheetResponse # noqa: E501
20+
from IntelligentStockMarketAPI.rest import ApiException
2121

2222

23+
# noinspection PyMethodMayBeStatic
2324
class TestAnnualBalanceSheetResponse(unittest.TestCase):
2425
"""AnnualBalanceSheetResponse unit test stubs"""
2526

@@ -38,8 +39,8 @@ def make_instance(self, include_optional):
3839
if include_optional:
3940
return AnnualBalanceSheetResponse(
4041
message='0',
41-
payload=src.IntelligentStockMarketAPI.models.annual_balance_sheet.AnnualBalanceSheet(
42-
balance_sheet=src.IntelligentStockMarketAPI.models._balance_sheet._BalanceSheet(
42+
payload= IntelligentStockMarketAPI.models.AnnualBalanceSheet(
43+
balance_sheet= IntelligentStockMarketAPI.models.BalanceSheet(
4344
accounts_payable=1.337,
4445
accumulated_amortization=1.337,
4546
accumulated_depreciation=1.337,
@@ -101,8 +102,7 @@ def make_instance(self, include_optional):
101102
status=True
102103
)
103104
else:
104-
return AnnualBalanceSheetResponse(
105-
)
105+
return AnnualBalanceSheetResponse()
106106

107107
def testAnnualBalanceSheetResponse(self):
108108
"""Test AnnualBalanceSheetResponse"""

0 commit comments

Comments
 (0)