We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rp_log_batch_payload_size
1 parent 416c717 commit 3482774Copy full SHA for 3482774
tests/helpers/utils.py
@@ -16,6 +16,7 @@
16
import os
17
import random
18
import time
19
+from multiprocessing.pool import ThreadPool
20
21
import pytest
22
@@ -132,3 +133,17 @@ def attributes_to_tuples(attributes):
132
133
else:
134
result.add((None, attribute['value']))
135
return result
136
+
137
138
+# noinspection PyProtectedMember
139
+def run_tests_with_client(client, tests, args=None, variables=None):
140
+ def test_func():
141
+ from reportportal_client._local import set_current
142
+ set_current(client)
143
+ return run_pytest_tests(tests, args, variables)
144
145
+ pool = ThreadPool(processes=1)
146
+ async_result = pool.apply_async(test_func)
147
+ result = async_result.get()
148
+ pool.terminate()
149
+ return result
0 commit comments