Skip to content

Commit 047476e

Browse files
committed
more refactoring
Signed-off-by: Chris Snow <[email protected]>
1 parent e7136ba commit 047476e

25 files changed

+24
-34
lines changed

tests/base_test.py renamed to tests/base.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@
3737
from io import StringIO
3838

3939

40-
# def session_mock_response():
41-
# return MockResponse(
42-
# json_data={},
43-
# status_code=200,
44-
# headers={
45-
# "location": "/api/v1/session/df1bfacb-xxxx-xxxx-xxxx-c8f57d8f3c71"
46-
# },
47-
# )
48-
49-
5040
class MockResponse:
5141
def __init__(
5242
self,

tests/catalog_mock_api_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from hpecp.exceptions import APIItemNotFoundException
2323

24-
from .base_test import BaseTestCase, MockResponse
24+
from .base import BaseTestCase, MockResponse
2525

2626

2727
def mockApiSetup():

tests/catalog_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from hpecp.base_resource import ResourceList
3030
from hpecp.exceptions import APIItemNotFoundException
3131

32-
from .base_test import BaseTestCase, MockResponse, get_client
32+
from .base import BaseTestCase, MockResponse, get_client
3333
from .catalog_mock_api_responses import mockApiSetup
3434

3535
# setup the mock data

tests/cli_mock_api_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from hpecp.exceptions import APIItemNotFoundException
2323

24-
from .base_test import BaseTestCase, MockResponse
24+
from .base import BaseTestCase, MockResponse
2525

2626

2727
def mockApiSetup():

tests/cli_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from hpecp.cli import base
3232
from hpecp.gateway import Gateway
3333

34-
from .base_test import BaseTestCase, MockResponse
34+
from .base import BaseTestCase, MockResponse
3535
from .cli_mock_api_responses import mockApiSetup
3636

3737
# setup the mock data

tests/client_mock_api_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from hpecp.exceptions import APIItemNotFoundException
2323

24-
from .base_test import BaseTestCase, MockResponse
24+
from .base import BaseTestCase, MockResponse
2525

2626

2727
def mockApiSetup():

tests/client_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
from hpecp import ContainerPlatformClient, ContainerPlatformClientException
3030

31-
from .base_test import BaseTestCase, MockResponse
31+
from .base import BaseTestCase, MockResponse
3232
from .client_mock_api_responses import mockApiSetup
3333

3434
# setup the mock data

tests/config_mock_api_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# OTHER DEALINGS IN THE SOFTWARE.
2020

2121

22-
from .base_test import BaseTestCase, MockResponse
22+
from .base import BaseTestCase, MockResponse
2323

2424

2525
def mockApiSetup():

tests/config_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from hpecp import ContainerPlatformClient
2727

28-
from .base_test import BaseTestCase, MockResponse
28+
from .base import BaseTestCase, MockResponse
2929
from .config_mock_api_responses import mockApiSetup
3030

3131
# setup the mock data

tests/gateway_mock_api_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# OTHER DEALINGS IN THE SOFTWARE.
2020

2121

22-
from .base_test import BaseTestCase, MockResponse
22+
from .base import BaseTestCase, MockResponse
2323

2424

2525
def mockApiGetSetup():

0 commit comments

Comments
 (0)