@@ -500,7 +500,7 @@ public async Task PipCommandService_GeneratesReport_WithDuplicate_Async()
500
500
this . envVarService . Setup ( x => x . IsEnvironmentVariableValueTrue ( "PipReportIgnoreFileLevelIndexUrl" ) ) . Returns ( true ) ;
501
501
this . commandLineInvokationService . Setup ( x => x . CanCommandBeLocatedAsync ( "pip" , It . IsAny < IEnumerable < string > > ( ) , "--version" ) ) . ReturnsAsync ( true ) ;
502
502
503
- this . fileUtilityService . Setup ( x => x . DuplicateFileWithoutLines ( It . IsAny < string > ( ) , "--index-url" ) )
503
+ this . fileUtilityService . Setup ( x => x . DuplicateFileWithoutLines ( It . IsAny < string > ( ) , "--index-url" , "-i" ) )
504
504
. Returns ( ( "C:/asdf/temp.requirements.txt" , true ) )
505
505
. Verifiable ( ) ;
506
506
this . fileUtilityService . Setup ( x => x . ReadAllTextAsync ( It . IsAny < FileInfo > ( ) ) )
@@ -535,7 +535,7 @@ public async Task PipCommandService_GeneratesReport_WithoutDuplicate_Async()
535
535
this . envVarService . Setup ( x => x . IsEnvironmentVariableValueTrue ( "PipReportIgnoreFileLevelIndexUrl" ) ) . Returns ( true ) ;
536
536
this . commandLineInvokationService . Setup ( x => x . CanCommandBeLocatedAsync ( "pip" , It . IsAny < IEnumerable < string > > ( ) , "--version" ) ) . ReturnsAsync ( true ) ;
537
537
538
- this . fileUtilityService . Setup ( x => x . DuplicateFileWithoutLines ( It . IsAny < string > ( ) , "--index-url" ) )
538
+ this . fileUtilityService . Setup ( x => x . DuplicateFileWithoutLines ( It . IsAny < string > ( ) , "--index-url" , "-i" ) )
539
539
. Returns ( ( null , false ) )
540
540
. Verifiable ( ) ;
541
541
this . fileUtilityService . Setup ( x => x . ReadAllTextAsync ( It . IsAny < FileInfo > ( ) ) )
@@ -590,7 +590,7 @@ public async Task PipCommandService_GeneratesReport_UseFileIndex_Async()
590
590
this . logger . Object ) ;
591
591
592
592
var ( report , reportFile ) = await service . GenerateInstallationReportAsync ( testPath ) ;
593
- this . fileUtilityService . Verify ( x => x . DuplicateFileWithoutLines ( It . IsAny < string > ( ) , "--index-url" ) , Times . Never ) ;
593
+ this . fileUtilityService . Verify ( x => x . DuplicateFileWithoutLines ( It . IsAny < string > ( ) , "--index-url" , "-i" ) , Times . Never ) ;
594
594
this . commandLineInvokationService . Verify ( ) ;
595
595
}
596
596
0 commit comments