@@ -64,7 +64,6 @@ def test_convert_config_values_to_str(self):
64
64
"topic.tracking.allow.reset" : "false" ,
65
65
}
66
66
67
- @pytest .mark .asyncio ()
68
67
@patch ("httpx.AsyncClient.post" )
69
68
async def test_should_create_post_requests_for_given_connector_configuration (
70
69
self , mock_post : AsyncMock
@@ -94,7 +93,6 @@ async def test_should_create_post_requests_for_given_connector_configuration(
94
93
},
95
94
)
96
95
97
- @pytest .mark .asyncio ()
98
96
async def test_should_return_correct_response_when_connector_created (
99
97
self , httpx_mock : HTTPXMock , connector_config : KafkaConnectorConfig
100
98
):
@@ -131,7 +129,6 @@ async def test_should_return_correct_response_when_connector_created(
131
129
132
130
assert KafkaConnectResponse (** actual_response ) == expected_response
133
131
134
- @pytest .mark .asyncio ()
135
132
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.warning" )
136
133
async def test_should_raise_connector_exists_exception_when_connector_exists (
137
134
self ,
@@ -156,7 +153,6 @@ async def test_should_raise_connector_exists_exception_when_connector_exists(
156
153
"Rebalancing in progress while creating a connector... Retrying..."
157
154
)
158
155
159
- @pytest .mark .asyncio ()
160
156
@patch ("httpx.AsyncClient.get" )
161
157
async def test_should_create_correct_get_connector_request (
162
158
self , mock_get : AsyncMock
@@ -171,7 +167,6 @@ async def test_should_create_correct_get_connector_request(
171
167
)
172
168
173
169
@pytest .mark .flaky (reruns = 5 , condition = sys .platform .startswith ("win32" ))
174
- @pytest .mark .asyncio ()
175
170
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.info" )
176
171
async def test_should_return_correct_response_when_getting_connector (
177
172
self , log_info : MagicMock , httpx_mock : HTTPXMock
@@ -207,7 +202,6 @@ async def test_should_return_correct_response_when_getting_connector(
207
202
assert KafkaConnectResponse (** actual_response ) == expected_response
208
203
log_info .assert_called_once_with (f"Connector { connector_name } exists." )
209
204
210
- @pytest .mark .asyncio ()
211
205
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.info" )
212
206
async def test_should_raise_connector_not_found_when_getting_connector (
213
207
self , log_info : MagicMock , httpx_mock : HTTPXMock
@@ -228,7 +222,6 @@ async def test_should_raise_connector_not_found_when_getting_connector(
228
222
f"The named connector { connector_name } does not exists."
229
223
)
230
224
231
- @pytest .mark .asyncio ()
232
225
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.warning" )
233
226
async def test_should_raise_rebalance_in_progress_when_getting_connector (
234
227
self , log_warning : MagicMock , httpx_mock : HTTPXMock
@@ -252,7 +245,6 @@ async def test_should_raise_rebalance_in_progress_when_getting_connector(
252
245
"Rebalancing in progress while getting a connector... Retrying..."
253
246
)
254
247
255
- @pytest .mark .asyncio ()
256
248
@patch ("httpx.AsyncClient.put" )
257
249
async def test_should_create_correct_update_connector_request (
258
250
self , mock_put : AsyncMock
@@ -279,7 +271,6 @@ async def test_should_create_correct_update_connector_request(
279
271
json = KafkaConnectorConfig .model_validate (configs ).model_dump (),
280
272
)
281
273
282
- @pytest .mark .asyncio ()
283
274
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.info" )
284
275
async def test_should_return_correct_response_when_update_connector (
285
276
self ,
@@ -323,7 +314,6 @@ async def test_should_return_correct_response_when_update_connector(
323
314
f"Config for connector { connector_name } updated."
324
315
)
325
316
326
- @pytest .mark .asyncio ()
327
317
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.info" )
328
318
async def test_should_return_correct_response_when_update_connector_created (
329
319
self ,
@@ -364,7 +354,6 @@ async def test_should_return_correct_response_when_update_connector_created(
364
354
assert KafkaConnectResponse (** actual_response ) == expected_response
365
355
log_info .assert_called_once_with (f"Connector { connector_name } created." )
366
356
367
- @pytest .mark .asyncio ()
368
357
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.warning" )
369
358
async def test_should_raise_connector_exists_exception_when_update_connector (
370
359
self ,
@@ -391,7 +380,6 @@ async def test_should_raise_connector_exists_exception_when_update_connector(
391
380
"Rebalancing in progress while updating a connector... Retrying..."
392
381
)
393
382
394
- @pytest .mark .asyncio ()
395
383
@patch ("httpx.AsyncClient.delete" )
396
384
async def test_should_create_correct_delete_connector_request (
397
385
self , mock_delete : AsyncMock
@@ -405,7 +393,6 @@ async def test_should_create_correct_delete_connector_request(
405
393
headers = HEADERS ,
406
394
)
407
395
408
- @pytest .mark .asyncio ()
409
396
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.info" )
410
397
async def test_should_return_correct_response_when_deleting_connector (
411
398
self , log_info : MagicMock , httpx_mock : HTTPXMock
@@ -441,7 +428,6 @@ async def test_should_return_correct_response_when_deleting_connector(
441
428
442
429
log_info .assert_called_once_with (f"Connector { connector_name } deleted." )
443
430
444
- @pytest .mark .asyncio ()
445
431
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.info" )
446
432
async def test_should_raise_connector_not_found_when_deleting_connector (
447
433
self , log_info : MagicMock , httpx_mock : HTTPXMock
@@ -462,7 +448,6 @@ async def test_should_raise_connector_not_found_when_deleting_connector(
462
448
f"The named connector { connector_name } does not exists."
463
449
)
464
450
465
- @pytest .mark .asyncio ()
466
451
@patch ("kpops.component_handlers.kafka_connect.connect_wrapper.log.warning" )
467
452
async def test_should_raise_rebalance_in_progress_when_deleting_connector (
468
453
self , log_warning : MagicMock , httpx_mock : HTTPXMock
@@ -486,7 +471,6 @@ async def test_should_raise_rebalance_in_progress_when_deleting_connector(
486
471
"Rebalancing in progress while deleting a connector... Retrying..."
487
472
)
488
473
489
- @pytest .mark .asyncio ()
490
474
@patch ("httpx.AsyncClient.put" )
491
475
async def test_should_create_correct_validate_connector_config_request (
492
476
self , mock_put : AsyncMock
@@ -508,7 +492,6 @@ async def test_should_create_correct_validate_connector_config_request(
508
492
json = connector_config .model_dump (),
509
493
)
510
494
511
- @pytest .mark .asyncio ()
512
495
@patch ("httpx.AsyncClient.put" )
513
496
async def test_should_create_correct_validate_connector_config_and_name_gets_added (
514
497
self , mock_put : AsyncMock
@@ -533,7 +516,6 @@ async def test_should_create_correct_validate_connector_config_and_name_gets_add
533
516
).model_dump (),
534
517
)
535
518
536
- @pytest .mark .asyncio ()
537
519
async def test_should_parse_validate_connector_config (self , httpx_mock : HTTPXMock ):
538
520
content = await Path (
539
521
RESOURCES_PATH / "connect_validation_response.json" ,
0 commit comments