Skip to content

Commit 6c95d5d

Browse files
author
Nathan Beittenmiller
committed
Moving tests to the root level
1 parent d198f6c commit 6c95d5d

33 files changed

Lines changed: 49 additions & 45 deletions

SoftLayer/tests/mocks/__init__.py

Whitespace-only changes.

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@
4646
author='SoftLayer Technologies, Inc.',
4747
author_email='[email protected]',
4848
packages=[
49-
'SoftLayer',
50-
'SoftLayer.CLI',
51-
'SoftLayer.CLI.modules',
52-
'SoftLayer.managers',
49+
'tests',
50+
'tests.CLI',
51+
'tests.CLI.modules',
52+
'tests.managers',
53+
'tests.mocks',
5354
],
5455
license='The BSD License',
5556
zip_safe=False,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
SoftLayer.tests.CLI.core_tests
2+
tests.CLI.core_tests
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
55
:copyright: (c) 2013, SoftLayer Technologies, Inc. All rights reserved.
@@ -9,7 +9,7 @@
99

1010
import SoftLayer
1111
import SoftLayer.CLI as cli
12-
from SoftLayer.tests import unittest
12+
from tests import unittest
1313
from SoftLayer.CLI.helpers import CLIAbort
1414
from SoftLayer.CLI.environment import Environment, InvalidModule
1515

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
SoftLayer.tests.CLI.environment_tests
2+
tests.CLI.environment_tests
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
55
:copyright: (c) 2013, SoftLayer Technologies, Inc. All rights reserved.
@@ -9,7 +9,7 @@
99
import os
1010
from mock import patch, MagicMock
1111

12-
from SoftLayer.tests import unittest
12+
from tests import unittest
1313
from SoftLayer.CLI.environment import Environment, InvalidCommand
1414

1515
if sys.version_info >= (3,):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
SoftLayer.tests.CLI.helper_tests
2+
tests.CLI.helper_tests
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
55
:copyright: (c) 2013, SoftLayer Technologies, Inc. All rights reserved.
@@ -10,7 +10,7 @@
1010
import json
1111

1212
import SoftLayer.CLI as cli
13-
from SoftLayer.tests import FIXTURE_PATH, unittest
13+
from tests import FIXTURE_PATH, unittest
1414
from mock import patch, mock_open, call
1515

1616

SoftLayer/tests/CLI/modules/hardware_tests.py renamed to tests/CLI/modules/hardware_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
SoftLayer.tests.CLI.modules.hardware_tests
2+
tests.CLI.modules.hardware_tests
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
55
This is a series of integration tests designed to test the complete
@@ -16,6 +16,8 @@
1616

1717
from SoftLayer.CLI.helpers import format_output, CLIAbort
1818
from SoftLayer.CLI.modules import server
19+
#from SoftLayer.CLI.modules.hardware import *
20+
from tests.mocks import account_mock
1921

2022

2123
class HardwareCLITests(unittest.TestCase):
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
import os.path
77

88
FIXTURE_PATH = os.path.abspath(os.path.join(__file__, '..', 'fixtures'))
9-
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
SoftLayer.tests.api_tests
2+
tests.api_tests
33
~~~~~~~~~~~~~~~~~~~~~~~~~
44
55
:copyright: (c) 2013, SoftLayer Technologies, Inc. All rights reserved.
@@ -9,7 +9,7 @@
99

1010
import SoftLayer
1111
import SoftLayer.API
12-
from SoftLayer.tests import unittest
12+
from tests import unittest
1313
from SoftLayer.consts import USER_AGENT
1414

1515

0 commit comments

Comments
 (0)