@@ -143,19 +143,26 @@ def test_statistics(send_event, getenv):
143
143
144
144
def test_clone ():
145
145
args = ['http://endpoint' , 'project' , 'token' ]
146
- kwargs = {'log_batch_size' : 30 , 'is_skipped_an_issue' : False , 'verify_ssl' : False , 'retries' : 5 ,
147
- 'max_pool_size' : 30 , 'launch_id' : 'test-123' , 'http_timeout' : (30 , 30 ),
146
+ kwargs = {'log_batch_size' : 30 , 'is_skipped_an_issue' : False ,
147
+ 'verify_ssl' : False , 'retries' : 5 ,
148
+ 'max_pool_size' : 30 , 'launch_id' : 'test-123' ,
149
+ 'http_timeout' : (30 , 30 ),
148
150
'log_batch_payload_size' : 1000000 , 'mode' : 'DEBUG' }
149
151
client = RPClient (* args , ** kwargs )
150
152
client ._item_stack .append ('test-321' )
151
153
client ._item_stack .append ('test-322' )
152
154
cloned = client .clone ()
153
155
assert cloned is not None and client is not cloned
154
- assert cloned .endpoint == args [0 ] and cloned .project == args [1 ] and cloned .token == args [2 ]
155
- assert cloned .log_batch_size == kwargs ['log_batch_size' ] and cloned .is_skipped_an_issue == kwargs [
156
- 'is_skipped_an_issue' ] and cloned .verify_ssl == kwargs ['verify_ssl' ] and cloned .retries == kwargs [
157
- 'retries' ] and cloned .max_pool_size == kwargs ['max_pool_size' ] and cloned .launch_id == kwargs [
156
+ assert cloned .endpoint == args [0 ] and cloned .project == args [
157
+ 1 ] and cloned .token == args [2 ]
158
+ assert cloned .log_batch_size == kwargs [
159
+ 'log_batch_size' ] and cloned .is_skipped_an_issue == kwargs [
160
+ 'is_skipped_an_issue' ] and cloned .verify_ssl == kwargs [
161
+ 'verify_ssl' ] and cloned .retries == kwargs [
162
+ 'retries' ] and cloned .max_pool_size == kwargs [
163
+ 'max_pool_size' ] and cloned .launch_id == kwargs [
158
164
'launch_id' ] and cloned .http_timeout == kwargs [
159
165
'http_timeout' ] and cloned .log_batch_payload_size == kwargs [
160
166
'log_batch_payload_size' ] and cloned .mode == kwargs ['mode' ]
161
- assert len (cloned ._item_stack ) == 1 and client .current_item () == cloned .current_item ()
167
+ assert len (cloned ._item_stack ) == 1 \
168
+ and client .current_item () == cloned .current_item ()
0 commit comments