-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
69 lines (62 loc) · 3.41 KB
/
__init__.py
File metadata and controls
69 lines (62 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# pytest --html=tests/report/test-report.html
# above command runs tests and test reports generates in tests/report location.
# nosetests --with-coverage --cover-html
# clean all the .pyc files
# find . -name \*.pyc -delete
# nosetests --with-coverage --cover-html
# pytest --cov=contentstack
# pytest -v --cov=contentstack --cov-report=html
# pytest --html=tests/report/test-report.html
# Sanity: PYTHONPATH=. pytest tests/unit/ --html=tests/report/test-report.html
from unittest import TestLoader, TestSuite
from .api.aliases.test_alias import AliaseApiTests
from .api.branches.test_branch_api import BranchApiTests
from .api.content_types.test_content_type_api import ContentTypeApiTests
from .api.organizations.test_org_api import OrganizationApiTests
from .api.stack.test_stack_apitest import StacksAPITests
from .api.users.test_api import UserApiTests
from .mock.branches.test_branch_mock import BranchMockTests
from .mock.organizations.test_org_mock import OrganizationMockTests
from .mock.users.test_mock import UserMockTests
from .test_contentstack import ContentstackTests
from .unit.aliases.test_alias_unit import AliasesUnitTests
from .unit.branches.test_branch import BranchesUnitTests
from .unit.content_types.test_content_type import ContentTypeUnitTests
from .unit.organizations.test_organizations import OrganizationUnitTests
from .unit.stack.test_stack import StacksUnitTests
from .unit.users.test_users import UserUnitTests
from .unit.entry.test_entry import EntryUnitTests
from .unit.contentstack.test_contentstack import ContentstackRegionUnitTests
from .unit.contentstack.test_contentstack_integration import ContentstackIntegrationTests
from .unit.contentstack.test_contentstack_utils import ContentstackUtilsTests
def all_tests():
test_module_contentstack = TestLoader().loadTestsFromTestCase(ContentstackTests)
test_module_org_unit = TestLoader().loadTestsFromTestCase(OrganizationUnitTests)
test_module_user_unittest = TestLoader().loadTestsFromTestCase(UserUnitTests)
test_module_stacks_unit = TestLoader().loadTestsFromTestCase(StacksUnitTests)
test_module_org_api = TestLoader().loadTestsFromTestCase(OrganizationApiTests)
test_module_stacks_api = TestLoader().loadTestsFromTestCase(StacksAPITests)
test_module_user_api = TestLoader().loadTestsFromTestCase(UserApiTests)
test_module_org_mock = TestLoader().loadTestsFromTestCase(OrganizationMockTests)
test_module_user_mock = TestLoader().loadTestsFromTestCase(UserMockTests)
test_module_entry_unittest = TestLoader().loadTestsFromTestCase(EntryUnitTests)
test_module_alias_unittest = TestLoader().loadTestsFromTestCase(AliasesUnitTests)
test_module_contentstack_region_unit = TestLoader().loadTestsFromTestCase(ContentstackRegionUnitTests)
test_module_contentstack_integration = TestLoader().loadTestsFromTestCase(ContentstackIntegrationTests)
test_module_contentstack_utils = TestLoader().loadTestsFromTestCase(ContentstackUtilsTests)
TestSuite([
test_module_contentstack,
test_module_org_api,
test_module_org_mock,
test_module_org_unit,
test_module_user_api,
test_module_user_mock,
test_module_user_unittest,
test_module_stacks_api,
test_module_stacks_unit,
test_module_entry_unittest,
test_module_alias_unittest,
test_module_contentstack_region_unit,
test_module_contentstack_integration,
test_module_contentstack_utils
])