pam-python 0.1.26__tar.gz → 0.1.28__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pam_python-0.1.26 → pam_python-0.1.28}/PKG-INFO +1 -1
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/service/service.test.tmpl +3 -1
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/service/service_class.tmpl +1 -1
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/tester_task.py +6 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam_python.egg-info/PKG-INFO +1 -1
- {pam_python-0.1.26 → pam_python-0.1.28}/setup.py +1 -1
- {pam_python-0.1.26 → pam_python-0.1.28}/LICENSE.txt +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/README.md +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/__init__.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/api.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/cli.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/interface_task_manager.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/models/__init__.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/models/request_command.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/server.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/service.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/sqlite.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/task_manager.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/temp_file_utils.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/buildcmd/pamb +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/buildcmd/pamb-base.sh +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/docker/Dockerfile +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/dockerignore.tmpl +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/gitignore.tmpl +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/main.tmpl +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/pylintrc.tmpl +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/run_unit_test.bat +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/run_unit_test.ps1 +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/init/run_unit_test.sh +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/service/functions.tmpl +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/templates/service/service.yaml +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam/utils.py +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam_python.egg-info/SOURCES.txt +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam_python.egg-info/dependency_links.txt +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam_python.egg-info/entry_points.txt +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam_python.egg-info/requires.txt +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/pam_python.egg-info/top_level.txt +0 -0
- {pam_python-0.1.26 → pam_python-0.1.28}/setup.cfg +0 -0
|
@@ -111,4 +111,6 @@ class Test#CLASS_NAME#(unittest.TestCase):
|
|
|
111
111
|
)
|
|
112
112
|
service_instance = #CLASS_NAME#(self.testerTask, req)
|
|
113
113
|
#---- Run Service ----
|
|
114
|
-
self.testerTask.test_service(service_instance)
|
|
114
|
+
self.testerTask.test_service(service_instance)
|
|
115
|
+
|
|
116
|
+
self.testerTask.wait_for_task_done()
|
|
@@ -23,6 +23,7 @@ class TesterTask(ITaskManager):
|
|
|
23
23
|
self.upload_sqlite_callback: Optional[UploadSqliteCallbackType] = None
|
|
24
24
|
self.upload_result_callback: Optional[UploadResultCallbackType] = None
|
|
25
25
|
self.upload_report_callback: Optional[UploadReportCallbackType] = None
|
|
26
|
+
self.is_exit = False
|
|
26
27
|
|
|
27
28
|
def set_on_request_data(self, request_data_callback: RequestDataCallbackType):
|
|
28
29
|
"""
|
|
@@ -73,8 +74,13 @@ class TesterTask(ITaskManager):
|
|
|
73
74
|
pass
|
|
74
75
|
|
|
75
76
|
def service_exit(self, service: Service):
|
|
77
|
+
self.is_exit = True
|
|
76
78
|
print(f"{service.request.service_name} Exit.")
|
|
77
79
|
|
|
80
|
+
def wait_for_task_done(self):
|
|
81
|
+
while not self.is_exit:
|
|
82
|
+
pass
|
|
83
|
+
|
|
78
84
|
def service_request_data(self, service: Service, page: str):
|
|
79
85
|
"""
|
|
80
86
|
Simulate a service data request.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|