Repository navigation
Expand file tree
/
Copy pathTests.py
More file actions
117 lines (115 loc) · 4.1 KB
/
Copy pathTests.py
File metadata and controls
117 lines (115 loc) · 4.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import importlib
importlib.invalidate_caches()
from python_helper import EnvironmentHelper, log, RandomHelper
EnvironmentHelper.update("URL_VARIANT", RandomHelper.integer(minimum=0, maximum=10000))
log.debug(log.debug, f'variant: {EnvironmentHelper.get("URL_VARIANT")}')
from python_helper import TestHelper
TestHelper.run(
__file__,
ignoreModules = [
'TestApiTest'
]
)
# TestHelper.run(__file__)
# TestHelper.run(
# __file__,
# runOnly = [
# 'SerializerTest.getClassRole',
# 'SerializerTest.importResource',
# 'SerializerTest.convertFromObjectToObject',
# 'SerializerTest.convertFromObjectToObject_whenTargetClassIsList',
# 'SerializerTest.isModelTest',
# 'SerializerTest.isJsonifyable',
# 'SerializerTest.jsonifyIt',
# 'SerializerTest.fromDtoToModel',
# 'SerializerTest.fromModelToDto',
# 'SerializerTest.convertFromJsonToObject_whenThereAreEnums',
# 'SerializerTest.convertFromObjectToObject_weirdIdList',
# 'SerializerTest.convertFromJsonToObject_nativeClassAtributeList',
# 'SerializerTest.convertFromJsonToObject_listSpecialCase_whenNotFound',
# 'SerializerTest.convertFromJsonToObject_listSpecialCase_whenFoundButInvalid',
# 'SerializerTest.convertFromJsonToObject_listSpecialCase_whenFoundAndValid',
# 'SerializerTest.convertFromJsonToObject_listSpecialCase_whenFoundAndValidKeepingDataType'
# ]
# )
# TestHelper.run(
# __file__,
# runOnly = [
# 'SessionManagerTest.sessionManager_worksProperly',
# 'ApiKeyManagerTest.apiKeyManager_worksProperly',
# 'SecurityManagerTest.securityManager_worksProperly'
# ]
# )
# TestHelper.run(
# __file__,
# # times=10,
# runOnly = [
# 'TestApiTest.appRun_whenEnvironmentIsPrd_withSuccess',
# # 'TestApiTest.appRun_whenEnvironmentIsLocalFromDevConfig_withSuccess',
# # 'TestApiTest.appRun_whenEnvironmentIsLocalFromLocalConfig_withSuccess',
# # 'TestApiTest.pythonRun_securityManager',
# # # 'TestApiTest.pythonRun_apiKeyManager',
# # # 'TestApiTest.pythonRun_sessionManager',
# # 'TestApiTest.testing_headersAndParams',
# # # ,
# # 'TestApiTest.testing_Client'
# ]
# )
# TestHelper.run(
# __file__,
# runOnly = [
# 'EnumAnnotationTest.Enum_comparing'
# ]
# )
# TestHelper.run(
# __file__,
# runOnly = [
# 'GlobalExceptionAnnotationTest.encapsulateItWithGlobalException_withParameters_GlobalException'
# ]
# )
# TestHelper.run(
# __file__,
# # logStatus = True,
# # wrapperStatus = True,
# runOnly = [
# # 'EnumAnnotationTest.enum_withSuccess',
# # 'EnumAnnotationTest.otherEnum_withSuccess',
# # 'EnumAnnotationTest.python_framework_status',
# # 'EnumAnnotationTest.enumName',
# # 'EnumAnnotationTest.enumName_badImplementation',
# # 'EnumAnnotationTest.map_whenArgIsNone',
# # 'EnumAnnotationTest.Enum_whenHaveMoreThanOneInnerValue',
# # 'EnumAnnotationTest.Enum_dot_map',
# # 'EnumAnnotationTest.Enum_str',
# # 'EnumAnnotationTest.Enum_strInOutput',
# # 'EnumAnnotationTest.Enum_getItemsAsString'
# ]
# )
# TestHelper.run(
# __file__,
# runOnly = [
# 'SerializerTest.convertFromObjectToObject_whenTargetClassIsList',
# 'SerializerTest.isModelTest',
# 'SerializerTest.isJsonifyable',
# 'SerializerTest.jsonifyIt',
# 'SerializerTest.fromDtoToModel',
# 'SerializerTest.fromModelToDto',
# 'SerializerTest.convertFromJsonToObject_whenThereAreEnums',
# 'SerializerTest.convertFromObjectToObject_weirdIdList',
# 'SerializerTest.convertFromJsonToObject_nativeClassAtributeList'
# ]
# )
# TestHelper.run(
# __file__,
# runOnly = [
# 'SerializerTest.fromModelToDto',
# 'SerializerTest.fromDtoToModel'
# ]
# )
# TestHelper.run(
# __file__,
# runOnly = [
# 'SerializerTest.convertFromJsonToObject_whenThereAreEnums'
# ]
# )
log.debug(log.debug, f'variant: {EnvironmentHelper.get("URL_VARIANT")}')