@@ -100,7 +100,7 @@ describe('inspect', () => {
100100 {
101101 pkg : {
102102 name : 'jaraco.collections' ,
103- version : '5.0.0 ' ,
103+ version : '5.0.1 ' ,
104104 } ,
105105 directDeps : [ 'irc' ] ,
106106 } ,
@@ -163,7 +163,7 @@ describe('inspect', () => {
163163 {
164164 pkg : {
165165 name : 's3transfer' ,
166- version : '0.10.0 ' ,
166+ version : '0.10.2 ' ,
167167 } ,
168168 directDeps : [ 'awss' ] ,
169169 } ,
@@ -205,7 +205,7 @@ describe('inspect', () => {
205205 {
206206 pkg : {
207207 name : 'jsonschema' ,
208- version : '4.21.1 ' ,
208+ version : '4.23.0 ' ,
209209 } ,
210210 directDeps : [ 'openapi-spec-validator' ] ,
211211 } ,
@@ -451,6 +451,49 @@ describe('inspect', () => {
451451 } ) ;
452452 } ) ;
453453
454+ describe ( 'when testing pipenv projects simulating pipenv install' , ( ) => {
455+ let tearDown ;
456+
457+ afterAll ( ( ) => {
458+ tearDown ( ) ;
459+ } ) ;
460+
461+ it . each ( [
462+ {
463+ workspace : 'pipfile-pipapp-pinned' ,
464+ targetFile : undefined ,
465+ } ,
466+ {
467+ workspace : 'pipenv-app' ,
468+ targetFile : undefined ,
469+ } ,
470+ ] ) (
471+ 'should get a valid dependency graph for workspace = $workspace' ,
472+ async ( { workspace, targetFile } ) => {
473+ testUtils . chdirWorkspaces ( workspace ) ;
474+ testUtils . ensureVirtualenv ( workspace ) ;
475+ tearDown = testUtils . activateVirtualenv ( workspace ) ;
476+ testUtils . pipenvInstall ( ) ;
477+ testUtils . chdirWorkspaces ( workspace ) ;
478+ const result = await inspect (
479+ '.' ,
480+ targetFile ? targetFile : FILENAMES . pipenv . manifest
481+ ) ;
482+
483+ const expected = [
484+ {
485+ pkg : {
486+ name : 'markupsafe' ,
487+ version : '2.1.5' ,
488+ } ,
489+ directDeps : [ 'jinja2' ] ,
490+ } ,
491+ ] ;
492+ compareTransitiveLines ( result . dependencyGraph , expected ) ;
493+ }
494+ ) ;
495+ } ) ;
496+
454497 describe ( 'when generating Pipfile depGraphs ' , ( ) => {
455498 let tearDown ;
456499 beforeAll ( ( ) => {
0 commit comments