File tree 1 file changed +22
-6
lines changed
1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -360,18 +360,34 @@ def auth_needed(request: pytest.FixtureRequest) -> bool:
360
360
361
361
@pytest .fixture (
362
362
params = (
363
- False ,
364
- True ,
363
+ (False , False , False ),
364
+ (False , True , False ),
365
+ (True , True , False ),
366
+ (True , False , True ),
367
+ ),
368
+ ids = (
369
+ "default-default" ,
370
+ "default-force_keyring" ,
371
+ "no_input-force_keyring" ,
372
+ "no_input-default" ,
365
373
),
366
- ids = ("default" , "no_input" ),
367
374
)
368
- def flags (request : pytest .FixtureRequest ) -> typing .List [str ]:
369
- no_input = request .param # type: ignore[attr-defined]
375
+ def flags (request : pytest .FixtureRequest , auth_needed : bool ) -> typing .List [str ]:
376
+ (
377
+ no_input ,
378
+ force_keyring ,
379
+ xfail ,
380
+ ) = request .param # type: ignore[attr-defined]
370
381
371
382
flags = []
372
383
if no_input :
373
384
flags .append ("--no-input" )
374
-
385
+ if force_keyring :
386
+ flags .append (
387
+ "--force-keyring" ,
388
+ )
389
+ if auth_needed and xfail :
390
+ request .applymarker (pytest .mark .xfail ())
375
391
return flags
376
392
377
393
You can’t perform that action at this time.
0 commit comments