@@ -359,18 +359,6 @@ def test_mirroring_custom_repository_command(expected_command, config):
359
359
assert expected_command == Repository ._repository_command (config , lambda : DEFAULT_COMMAND )
360
360
361
361
362
- @pytest .mark .parametrize (
363
- ('touch_binary' ), [
364
- pytest .param ('/bin/touch' ,
365
- marks = pytest .mark .skipif (
366
- not os .path .exists ('/bin/touch' ),
367
- reason = "requires /bin binaries" )),
368
- pytest .param ('/usr/bin/touch' ,
369
- marks = pytest .mark .skipif (
370
- not os .path .exists ('/usr/bin/touch' ),
371
- reason = "requires /usr/bin binaries" )),
372
- ]
373
- )
374
362
def test_mirroring_custom_incoming_invoke_command (touch_binary ):
375
363
checking_file = 'incoming.txt'
376
364
with tempfile .TemporaryDirectory () as repository_root :
@@ -381,18 +369,6 @@ def test_mirroring_custom_incoming_invoke_command(touch_binary):
381
369
assert checking_file in os .listdir (repository_root )
382
370
383
371
384
- @pytest .mark .parametrize (
385
- ('echo_binary' ), [
386
- pytest .param ('/bin/echo' ,
387
- marks = pytest .mark .skipif (
388
- not os .path .exists ('/bin/echo' ),
389
- reason = "requires /bin binaries" )),
390
- pytest .param ('/usr/bin/echo' ,
391
- marks = pytest .mark .skipif (
392
- not os .path .exists ('/usr/bin/echo' ),
393
- reason = "requires /usr/bin binaries" )),
394
- ]
395
- )
396
372
def test_mirroring_custom_incoming_changes (echo_binary ):
397
373
with tempfile .TemporaryDirectory () as repository_root :
398
374
repository = GitRepository (mock (), repository_root , 'test-1' , {
@@ -401,18 +377,6 @@ def test_mirroring_custom_incoming_changes(echo_binary):
401
377
assert repository .incoming () is True
402
378
403
379
404
- @pytest .mark .parametrize (
405
- ('true_binary' ), [
406
- pytest .param ('/bin/true' ,
407
- marks = pytest .mark .skipif (
408
- not os .path .exists ('/bin/true' ),
409
- reason = "requires /bin binaries" )),
410
- pytest .param ('/usr/bin/true' ,
411
- marks = pytest .mark .skipif (
412
- not os .path .exists ('/usr/bin/true' ),
413
- reason = "requires /usr/bin binaries" )),
414
- ]
415
- )
416
380
def test_mirroring_custom_incoming_no_changes (true_binary ):
417
381
with tempfile .TemporaryDirectory () as repository_root :
418
382
repository = GitRepository (mock (), repository_root , 'test-1' , {
@@ -421,18 +385,6 @@ def test_mirroring_custom_incoming_no_changes(true_binary):
421
385
assert repository .incoming () is False
422
386
423
387
424
- @pytest .mark .parametrize (
425
- ('false_binary' ), [
426
- pytest .param ('/bin/false' ,
427
- marks = pytest .mark .skipif (
428
- not os .path .exists ('/bin/false' ),
429
- reason = "requires /bin binaries" )),
430
- pytest .param ('/usr/bin/false' ,
431
- marks = pytest .mark .skipif (
432
- not os .path .exists ('/usr/bin/false' ),
433
- reason = "requires /usr/bin binaries" )),
434
- ]
435
- )
436
388
def test_mirroring_custom_incoming_error (false_binary ):
437
389
with pytest .raises (RepositoryException ):
438
390
with tempfile .TemporaryDirectory () as repository_root :
@@ -451,18 +403,6 @@ def test_mirroring_incoming_invoke_original_command():
451
403
verify (repository ).incoming_check ()
452
404
453
405
454
- @pytest .mark .parametrize (
455
- ('touch_binary' ), [
456
- pytest .param ('/bin/touch' ,
457
- marks = pytest .mark .skipif (
458
- not os .path .exists ('/bin/touch' ),
459
- reason = "requires /bin binaries" )),
460
- pytest .param ('/usr/bin/touch' ,
461
- marks = pytest .mark .skipif (
462
- not os .path .exists ('/usr/bin/touch' ),
463
- reason = "requires /usr/bin binaries" )),
464
- ]
465
- )
466
406
def test_mirroring_custom_sync_invoke_command (touch_binary ):
467
407
checking_file = 'sync.txt'
468
408
with tempfile .TemporaryDirectory () as repository_root :
@@ -473,18 +413,6 @@ def test_mirroring_custom_sync_invoke_command(touch_binary):
473
413
assert checking_file in os .listdir (repository_root )
474
414
475
415
476
- @pytest .mark .parametrize (
477
- ('true_binary' ), [
478
- pytest .param ('/bin/true' ,
479
- marks = pytest .mark .skipif (
480
- not os .path .exists ('/bin/true' ),
481
- reason = "requires /bin binaries" )),
482
- pytest .param ('/usr/bin/true' ,
483
- marks = pytest .mark .skipif (
484
- not os .path .exists ('/usr/bin/true' ),
485
- reason = "requires /usr/bin binaries" )),
486
- ]
487
- )
488
416
def test_mirroring_custom_sync_success (true_binary ):
489
417
with tempfile .TemporaryDirectory () as repository_root :
490
418
repository = GitRepository (mock (), repository_root , 'test-1' , {
@@ -493,18 +421,6 @@ def test_mirroring_custom_sync_success(true_binary):
493
421
assert 0 == repository .sync ()
494
422
495
423
496
- @pytest .mark .parametrize (
497
- ('false_binary' ), [
498
- pytest .param ('/bin/false' ,
499
- marks = pytest .mark .skipif (
500
- not os .path .exists ('/bin/false' ),
501
- reason = "requires /bin binaries" )),
502
- pytest .param ('/usr/bin/false' ,
503
- marks = pytest .mark .skipif (
504
- not os .path .exists ('/usr/bin/false' ),
505
- reason = "requires /usr/bin binaries" )),
506
- ]
507
- )
508
424
def test_mirroring_custom_sync_error (false_binary ):
509
425
with tempfile .TemporaryDirectory () as repository_root :
510
426
repository = GitRepository (mock (), repository_root , 'test-1' , {
0 commit comments