Skip to content

Commit 7e1cb50

Browse files
Updated Test Cases
1 parent 2515ce0 commit 7e1cb50

22 files changed

+564
-579
lines changed

src/.gitlab-ci.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,8 @@ stages:
88
script:
99
- pip install -r requirements.txt
1010
- pip install -r test-requirements.txt
11-
- pytest --cov=openapi_client
11+
- pytest --cov=intelligentStockMarketAPI
1212

13-
nosetest-2.7:
14-
extends: .nosetest
15-
image: python:2.7-alpine
16-
nosetest-3.3:
17-
extends: .nosetest
18-
image: python:3.3-alpine
19-
nosetest-3.4:
20-
extends: .nosetest
21-
image: python:3.4-alpine
22-
nosetest-3.5:
23-
extends: .nosetest
24-
image: python:3.5-alpine
25-
nosetest-3.6:
26-
extends: .nosetest
27-
image: python:3.6-alpine
2813
nosetest-3.7:
2914
extends: .nosetest
3015
image: python:3.7-alpine

src/.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "2.7"
5-
- "3.2"
6-
- "3.3"
7-
- "3.4"
8-
- "3.5"
9-
- "3.6"
104
- "3.7"
115
- "3.8"
126
# command to install dependencies
137
install:
148
- "pip install -r requirements.txt"
159
- "pip install -r test-requirements.txt"
1610
# command to run tests
17-
script: pytest --cov=openapi_client
11+
script: pytest --cov=intelligentStockMarketAPI

src/__init__.py

Whitespace-only changes.

src/requirements.txt

1.37 KB
Binary file not shown.

src/test-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytest~=4.6.7 # needed for python 2.7+3.4
2-
pytest-cov>=2.8.1
3-
pytest-randomly==1.2.3 # needed for python 2.7+3.4
1+
pytest
2+
pytest-cov
3+
pytest-randomly

src/tests/test_address_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import unittest
1616
import datetime
1717

18-
import src.IntelligentStockMarketAPI
18+
1919
from src.IntelligentStockMarketAPI.models.address_response import AddressResponse # noqa: E501
2020
from src.IntelligentStockMarketAPI.rest import ApiException
2121

src/tests/test_analyst.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212
from __future__ import absolute_import
1313

1414
import unittest
15-
import datetime
1615

17-
import IntelligentStockMarketAPI
18-
from IntelligentStockMarketAPI.models.analyst import Analyst # noqa: E501
19-
from IntelligentStockMarketAPI.rest import ApiException
16+
from src.IntelligentStockMarketAPI.models.analyst import Analyst # noqa: E501
2017

2118

2219
# noinspection PyMethodMayBeStatic

src/tests/test_annual_balance_sheet.py

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

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

2222

2323
# noinspection PyMethodMayBeStatic

src/tests/test_annual_balance_sheet_response.py

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

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

2222

2323
# noinspection PyMethodMayBeStatic

src/tests/test_balance_sheet.py

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

18-
import IntelligentStockMarketAPI
19-
from IntelligentStockMarketAPI.models.balance_sheet import BalanceSheet # noqa: E501
20-
from IntelligentStockMarketAPI.rest import ApiException
18+
import src.IntelligentStockMarketAPI as IntelligentStockMarketAPI
19+
from src.IntelligentStockMarketAPI.models.balance_sheet import BalanceSheet # noqa: E501
20+
from src.IntelligentStockMarketAPI.rest import ApiException
2121

2222

2323
# noinspection PyMethodMayBeStatic

src/tests/test_balance_sheets.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@
1212

1313
from __future__ import absolute_import
1414

15-
import unittest
1615
import datetime
16+
import unittest
1717

18-
from IntelligentStockMarketAPI.models.annual_balance_sheet import AnnualBalanceSheet
19-
from IntelligentStockMarketAPI.models.balance_sheet import BalanceSheet
20-
from IntelligentStockMarketAPI.models.quarterly_balance_sheet import QuarterlyBalanceSheet
21-
22-
import src.IntelligentStockMarketAPI
18+
from src.IntelligentStockMarketAPI.models.annual_balance_sheet import AnnualBalanceSheet
19+
from src.IntelligentStockMarketAPI.models.balance_sheet import BalanceSheet
2320
from src.IntelligentStockMarketAPI.models.balance_sheets import BalanceSheets # noqa: E501
24-
from src.IntelligentStockMarketAPI.rest import ApiException
21+
from src.IntelligentStockMarketAPI.models.quarterly_balance_sheet import QuarterlyBalanceSheet
2522

2623

2724
class TestBalanceSheets(unittest.TestCase):

src/tests/test_exchange.py

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

13-
1413
from __future__ import absolute_import
1514

1615
import unittest
@@ -20,6 +19,8 @@
2019
from src.IntelligentStockMarketAPI.models.exchange import Exchange # noqa: E501
2120
from src.IntelligentStockMarketAPI.rest import ApiException
2221

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

@@ -35,18 +36,18 @@ 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.exchange.Exchange() # noqa: E501
38-
if include_optional :
39+
if include_optional:
3940
return Exchange(
40-
code = '0',
41-
country = '0',
42-
currency_symbol = '0',
43-
exchange_id = '0',
44-
name = '0',
45-
operating_mic = '0'
41+
code='0',
42+
country='0',
43+
currency_symbol='0',
44+
exchange_id='0',
45+
name='0',
46+
operating_mic='0'
4647
)
47-
else :
48+
else:
4849
return Exchange(
49-
)
50+
)
5051

5152
def testExchange(self):
5253
"""Test Exchange"""

src/tests/test_exchange_list_response.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

13-
1413
from __future__ import absolute_import
1514

1615
import unittest
@@ -20,6 +19,8 @@
2019
from src.IntelligentStockMarketAPI.models.exchange_list_response import ExchangeListResponse # noqa: E501
2120
from src.IntelligentStockMarketAPI.rest import ApiException
2221

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

@@ -35,21 +36,21 @@ 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.exchange_list_response.ExchangeListResponse() # noqa: E501
38-
if include_optional :
39+
if include_optional:
3940
return ExchangeListResponse(
40-
message = '0',
41-
payload = src.IntelligentStockMarketAPI.models.exchange.Exchange(
42-
code = '0',
43-
country = '0',
44-
currency_symbol = '0',
45-
exchange_id = '0',
46-
name = '0',
47-
operating_mic = '0', ),
48-
status = True
41+
message='0',
42+
payload=src.IntelligentStockMarketAPI.models.exchange.Exchange(
43+
code='0',
44+
country='0',
45+
currency_symbol='0',
46+
exchange_id='0',
47+
name='0',
48+
operating_mic='0', ),
49+
status=True
4950
)
50-
else :
51+
else:
5152
return ExchangeListResponse(
52-
)
53+
)
5354

5455
def testExchangeListResponse(self):
5556
"""Test ExchangeListResponse"""

src/tests/test_exchange_listed_companies_response.py

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

13-
1413
from __future__ import absolute_import
1514

1615
import unittest
1716
import datetime
1817

1918
import src.IntelligentStockMarketAPI
20-
from src.IntelligentStockMarketAPI.models.exchange_listed_companies_response import ExchangeListedCompaniesResponse # noqa: E501
19+
from src.IntelligentStockMarketAPI.models.exchange_listed_companies_response import \
20+
ExchangeListedCompaniesResponse # noqa: E501
2121
from src.IntelligentStockMarketAPI.rest import ApiException
2222

23+
24+
# noinspection PyMethodMayBeStatic
2325
class TestExchangeListedCompaniesResponse(unittest.TestCase):
2426
"""ExchangeListedCompaniesResponse unit test stubs"""
2527

@@ -35,37 +37,37 @@ def make_instance(self, include_optional):
3537
params are included, when True both required and
3638
optional params are included """
3739
# model = src.IntelligentStockMarketAPI.models.exchange_listed_companies_response.ExchangeListedCompaniesResponse() # noqa: E501
38-
if include_optional :
40+
if include_optional:
3941
return ExchangeListedCompaniesResponse(
40-
message = '0',
41-
payload = src.IntelligentStockMarketAPI.models.general.General(
42-
cik = '0',
43-
country_name = '0',
44-
currency = '0',
45-
cusip = '0',
46-
description = '0',
47-
employer_id = '0',
48-
exchange = '0',
49-
fiscal_year_end = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
50-
fundamental_id = '0',
51-
gic_group = '0',
52-
gic_industry = '0',
53-
gic_sector = '0',
54-
home_category = '0',
55-
industry = '0',
56-
international_domestic = True,
57-
ipo_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
58-
is_delisted = True,
59-
isin = '0',
60-
name = '0',
61-
sector = '0',
62-
stock_symbol = '0',
63-
type = '0', ),
64-
status = True
42+
message='0',
43+
payload=src.IntelligentStockMarketAPI.models.general.General(
44+
cik='0',
45+
country_name='0',
46+
currency='0',
47+
cusip='0',
48+
description='0',
49+
employer_id='0',
50+
exchange='0',
51+
fiscal_year_end=datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
52+
fundamental_id='0',
53+
gic_group='0',
54+
gic_industry='0',
55+
gic_sector='0',
56+
home_category='0',
57+
industry='0',
58+
international_domestic=True,
59+
ipo_date=datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
60+
is_delisted=True,
61+
isin='0',
62+
name='0',
63+
sector='0',
64+
stock_symbol='0',
65+
type='0', ),
66+
status=True
6567
)
66-
else :
68+
else:
6769
return ExchangeListedCompaniesResponse(
68-
)
70+
)
6971

7072
def testExchangeListedCompaniesResponse(self):
7173
"""Test ExchangeListedCompaniesResponse"""

0 commit comments

Comments
 (0)