Skip to content

Commit 3898da8

Browse files
committed
chore: fix lint warnings
1 parent 7ba3cde commit 3898da8

16 files changed

+452
-5
lines changed

examples/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# coding: utf-8
2+
3+
"""Examples"""
4+
5+
# this file is present so that pylint will lint-check the files in this directory

pylint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
python -m pylint ibm_platform_services test
3+
python -m pylint ibm_platform_services test/unit test/integration

test/integration/test_case_management_v1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
configFile = 'case_management.env'
3131

3232
class TestCaseManagementV1(unittest.TestCase):
33+
"""
34+
Integration Test Class for CaseManagementV1
35+
"""
3336

3437
# Used to store newly created case number
3538
new_case_number = ''

test/integration/test_catalog_management_v1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
print('External configuration was not found, skipping tests...')
4747

4848
class TestCatalogManagementV1(unittest.TestCase):
49+
"""
50+
Integration Test Class for CaatalogManagementV1
51+
"""
4952

5053
@classmethod
5154
def setUpClass(self):

test/integration/test_enterprise_management_v1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242

4343

4444
class TestEnterpriseManagementV1(unittest.TestCase):
45+
"""
46+
Integration Test Class for EnterpriseManagementV1
47+
"""
4548

4649
@classmethod
4750
def setUpClass(cls):

test/integration/test_global_catalog_v1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
print('External configuration was not found, skipping tests...')
3737

3838
class TestGlobalCatalogV1(unittest.TestCase):
39+
"""
40+
Integration Test Class for GlobalCatalogV1
41+
"""
3942

4043
@classmethod
4144
def setUpClass(self):

test/integration/test_global_search_v2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545

4646
# Test class
4747
class TestGlobalSearchV2(unittest.TestCase):
48+
"""
49+
Integration Test Class for GlobalSearchV2
50+
"""
51+
4852
def setUp(self):
4953
if not configLoaded:
5054
self.skipTest("External configuration not available, skipping...")

test/integration/test_global_tagging_v1.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
unittest.TestLoader.sortTestMethodsUsing = None
2929

3030
def getRandomIntegerString(length=8):
31+
"""
32+
Helper function which returns a random integer of lengh 'length' digits.
33+
"""
34+
3135
if length < 0:
3236
length = 0
3337
res = ''
@@ -57,6 +61,10 @@ def getRandomIntegerString(length=8):
5761

5862
# Test class
5963
class TestGlobalTaggingV1(unittest.TestCase):
64+
"""
65+
Integration Test Class for GlobalTaggingV1
66+
"""
67+
6068
def setUp(self):
6169
if not configLoaded:
6270
self.skipTest("External configuration not available, skipping...")

test/integration/test_iam_access_groups_v2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
configFile = 'iam_access_groups.env'
3232

3333
class TestIamAccessGroupsV2(unittest.TestCase):
34+
"""
35+
Integration Test Class for IamAccessGroupsV2
36+
"""
37+
3438
@classmethod
3539
def setUpClass(cls):
3640
if os.path.exists(configFile):

test/integration/test_iam_policy_management_v1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333

3434

3535
class TestIamPolicyManagementV1(unittest.TestCase):
36+
"""
37+
Integration Test Class for IamPolicyManagementV1
38+
"""
39+
3640
@classmethod
3741
def setUpClass(cls):
3842
if os.path.exists(configFile):

test/integration/test_open_service_broker_v1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
configFile = 'open_service_broker.env'
3333

3434
class TestOpenServiceBrokerV1(unittest.TestCase):
35+
"""
36+
Integration Test Class for OpenServiceBrokerV1
37+
"""
38+
3539
@classmethod
3640
def setUpClass(cls):
3741
if os.path.exists(configFile):

test/integration/test_resource_controller_v2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
configFile = 'resource_controller.env'
3333

3434
class TestResourceControllerV2(unittest.TestCase):
35+
"""
36+
Integration Test Class for ResourceControllerV2
37+
"""
38+
3539
@classmethod
3640
def setUpClass(cls):
3741
if os.path.exists(configFile):

test/integration/test_resource_manager_v2.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
print('External configuration was not found, skipping tests...')
4040

4141
class TestResourceManagerV2(unittest.TestCase):
42-
@classmethod
42+
"""
43+
Integration Test Class for ResourceManagerV2
44+
"""
45+
46+
@classmethod
4347
def setUpClass(cls):
4448
if not configLoaded:
4549
raise unittest.SkipTest(

test/integration/test_user_management_v1.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
"""
17+
This class contains an integration test for User Management service.
18+
"""
19+
1620
import os
1721
import sys
1822
import unittest
@@ -23,6 +27,9 @@
2327
config_file = 'user-management.env'
2428

2529
class TestUserManagementV1(unittest.TestCase):
30+
"""
31+
Integration Test Class for UserManagementV1
32+
"""
2633

2734
@classmethod
2835
def setup_class(cls):

0 commit comments

Comments
 (0)