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

0 commit comments

Comments
 (0)