@@ -43,7 +43,7 @@ def test_get_request(self) -> None:
43
43
test_span = spans [2 ]
44
44
45
45
assert response
46
- assert 200 == response . status
46
+ assert response . status == 200
47
47
48
48
assert "X-INSTANA-T" in response .headers
49
49
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -78,13 +78,13 @@ def test_get_request(self) -> None:
78
78
assert spyne_span .ec is None
79
79
80
80
# spyne
81
- assert "spyne" == spyne_span . n
81
+ assert spyne_span . n == "spyne"
82
82
assert (
83
83
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
84
84
)
85
- assert "/hello" == spyne_span .data ["http" ]["url" ]
86
- assert "GET" == spyne_span .data ["http" ]["method" ]
87
- assert 200 == spyne_span .data ["http" ]["status" ]
85
+ assert spyne_span .data ["http" ]["url" ] == "/hello"
86
+ assert spyne_span .data ["http" ]["method" ] == "GET"
87
+ assert spyne_span .data ["http" ]["status" ] == 200
88
88
assert spyne_span .data ["http" ]["error" ] is None
89
89
assert spyne_span .stack is None
90
90
@@ -102,7 +102,7 @@ def test_secret_scrubbing(self) -> None:
102
102
test_span = spans [2 ]
103
103
104
104
assert response
105
- assert 200 == response . status
105
+ assert response . status == 200
106
106
107
107
assert "X-INSTANA-T" in response .headers
108
108
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -137,14 +137,14 @@ def test_secret_scrubbing(self) -> None:
137
137
assert spyne_span .ec is None
138
138
139
139
# spyne
140
- assert "spyne" == spyne_span . n
140
+ assert spyne_span . n == "spyne"
141
141
assert (
142
142
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
143
143
)
144
- assert "/say_hello" == spyne_span .data ["http" ]["url" ]
144
+ assert spyne_span .data ["http" ]["url" ] == "/say_hello"
145
145
assert spyne_span .data ["http" ]["params" ] == "name=World×=4&secret=<redacted>"
146
- assert "GET" == spyne_span .data ["http" ]["method" ]
147
- assert 200 == spyne_span .data ["http" ]["status" ]
146
+ assert spyne_span .data ["http" ]["method" ] == "GET"
147
+ assert spyne_span .data ["http" ]["status" ] == 200
148
148
assert spyne_span .data ["http" ]["error" ] is None
149
149
assert spyne_span .stack is None
150
150
@@ -169,7 +169,7 @@ def test_request_header_capture(self) -> None:
169
169
urllib3_span = spans [1 ]
170
170
test_span = spans [2 ]
171
171
172
- assert 200 == response . status
172
+ assert response . status == 200
173
173
174
174
assert "X-INSTANA-T" in response .headers
175
175
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -204,13 +204,13 @@ def test_request_header_capture(self) -> None:
204
204
assert spyne_span .ec is None
205
205
206
206
# spyne
207
- assert "spyne" == spyne_span . n
207
+ assert spyne_span . n == "spyne"
208
208
assert (
209
209
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
210
210
)
211
- assert "/hello" == spyne_span .data ["http" ]["url" ]
212
- assert "GET" == spyne_span .data ["http" ]["method" ]
213
- assert 200 == spyne_span .data ["http" ]["status" ]
211
+ assert spyne_span .data ["http" ]["url" ] == "/hello"
212
+ assert spyne_span .data ["http" ]["method" ] == "GET"
213
+ assert spyne_span .data ["http" ]["status" ] == 200
214
214
assert spyne_span .data ["http" ]["error" ] is None
215
215
assert spyne_span .stack is None
216
216
@@ -238,7 +238,7 @@ def test_response_header_capture(self) -> None:
238
238
urllib3_span = spans [1 ]
239
239
test_span = spans [2 ]
240
240
241
- assert 200 == response . status
241
+ assert response . status == 200
242
242
243
243
assert "X-INSTANA-T" in response .headers
244
244
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -274,13 +274,13 @@ def test_response_header_capture(self) -> None:
274
274
assert spyne_span .ec is None
275
275
276
276
# spyne
277
- assert "spyne" == spyne_span . n
277
+ assert spyne_span . n == "spyne"
278
278
assert (
279
279
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
280
280
)
281
- assert "/response_headers" == spyne_span .data ["http" ]["url" ]
282
- assert "GET" == spyne_span .data ["http" ]["method" ]
283
- assert 200 == spyne_span .data ["http" ]["status" ]
281
+ assert spyne_span .data ["http" ]["url" ] == "/response_headers"
282
+ assert spyne_span .data ["http" ]["method" ] == "GET"
283
+ assert spyne_span .data ["http" ]["status" ] == 200
284
284
assert spyne_span .data ["http" ]["error" ] is None
285
285
assert spyne_span .stack is None
286
286
@@ -307,7 +307,7 @@ def test_custom_404(self) -> None:
307
307
test_span = spans [3 ]
308
308
309
309
assert response
310
- assert 404 == response .status
310
+ assert response .status == 404
311
311
312
312
assert "X-INSTANA-T" in response .headers
313
313
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -343,24 +343,24 @@ def test_custom_404(self) -> None:
343
343
assert spyne_span .ec is None
344
344
345
345
# spyne
346
- assert "spyne" == spyne_span . n
346
+ assert spyne_span . n == "spyne"
347
347
assert (
348
348
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
349
349
)
350
- assert "/custom_404" == spyne_span .data ["http" ]["url" ]
351
- assert "GET" == spyne_span .data ["http" ]["method" ]
352
- assert 404 == spyne_span .data ["http" ]["status" ]
350
+ assert spyne_span .data ["http" ]["url" ] == "/custom_404"
351
+ assert spyne_span .data ["http" ]["method" ] == "GET"
352
+ assert spyne_span .data ["http" ]["status" ] == 404
353
353
assert spyne_span .data ["http" ]["error" ] is None
354
354
assert spyne_span .stack is None
355
355
356
356
# urllib3
357
- assert "test" == test_span .data ["sdk" ]["name" ]
358
- assert "urllib3" == urllib3_span . n
359
- assert 404 == urllib3_span .data ["http" ]["status" ]
357
+ assert test_span .data ["sdk" ]["name" ] == "test"
358
+ assert urllib3_span . n == "urllib3"
359
+ assert urllib3_span .data ["http" ]["status" ] == 404
360
360
assert (
361
361
testenv ["spyne_server" ] + "/custom_404" == urllib3_span .data ["http" ]["url" ]
362
362
)
363
- assert "GET" == urllib3_span .data ["http" ]["method" ]
363
+ assert urllib3_span .data ["http" ]["method" ] == "GET"
364
364
assert urllib3_span .stack is not None
365
365
assert type (urllib3_span .stack ) is list
366
366
assert len (urllib3_span .stack ) > 1
@@ -379,7 +379,7 @@ def test_404(self) -> None:
379
379
test_span = spans [2 ]
380
380
381
381
assert response
382
- assert 404 == response .status
382
+ assert response .status == 404
383
383
384
384
assert "X-INSTANA-T" in response .headers
385
385
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -415,24 +415,24 @@ def test_404(self) -> None:
415
415
assert spyne_span .ec is None
416
416
417
417
# spyne
418
- assert "spyne" == spyne_span . n
418
+ assert spyne_span . n == "spyne"
419
419
assert (
420
420
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
421
421
)
422
- assert "/11111" == spyne_span .data ["http" ]["url" ]
423
- assert "GET" == spyne_span .data ["http" ]["method" ]
424
- assert 404 == spyne_span .data ["http" ]["status" ]
422
+ assert spyne_span .data ["http" ]["url" ] == "/11111"
423
+ assert spyne_span .data ["http" ]["method" ] == "GET"
424
+ assert spyne_span .data ["http" ]["status" ] == 404
425
425
assert spyne_span .data ["http" ]["error" ] is None
426
426
assert spyne_span .stack is None
427
427
428
428
# urllib3
429
- assert "test" == test_span .data ["sdk" ]["name" ]
430
- assert "urllib3" == urllib3_span . n
431
- assert 404 == urllib3_span .data ["http" ]["status" ]
429
+ assert test_span .data ["sdk" ]["name" ] == "test"
430
+ assert urllib3_span . n == "urllib3"
431
+ assert urllib3_span .data ["http" ]["status" ] == 404
432
432
assert (
433
433
testenv ["spyne_server" ] + "/11111" == urllib3_span .data ["http" ]["url" ]
434
434
)
435
- assert "GET" == urllib3_span .data ["http" ]["method" ]
435
+ assert urllib3_span .data ["http" ]["method" ] == "GET"
436
436
assert urllib3_span .stack is not None
437
437
assert type (urllib3_span .stack ) is list
438
438
assert len (urllib3_span .stack ) > 1
@@ -452,7 +452,7 @@ def test_500(self) -> None:
452
452
test_span = spans [3 ]
453
453
454
454
assert response
455
- assert 500 == response . status
455
+ assert response . status == 500
456
456
457
457
assert "X-INSTANA-T" in response .headers
458
458
assert int (response .headers ["X-INSTANA-T" ], 16 )
@@ -487,12 +487,12 @@ def test_500(self) -> None:
487
487
assert spyne_span .ec == 1
488
488
489
489
# spyne
490
- assert "spyne" == spyne_span . n
490
+ assert spyne_span . n == "spyne"
491
491
assert (
492
492
"127.0.0.1:" + str (testenv ["spyne_port" ]) == spyne_span .data ["http" ]["host" ]
493
493
)
494
- assert "/exception" == spyne_span .data ["http" ]["url" ]
495
- assert "GET" == spyne_span .data ["http" ]["method" ]
496
- assert 500 == spyne_span .data ["http" ]["status" ]
494
+ assert spyne_span .data ["http" ]["url" ] == "/exception"
495
+ assert spyne_span .data ["http" ]["method" ] == "GET"
496
+ assert spyne_span .data ["http" ]["status" ] == 500
497
497
assert spyne_span .data ["http" ]["error" ] is None
498
498
assert spyne_span .stack is None
0 commit comments