diff --git a/test/system/inspect.test.js b/test/system/inspect.test.js index a83da2b3..f4c2d30c 100644 --- a/test/system/inspect.test.js +++ b/test/system/inspect.test.js @@ -711,6 +711,29 @@ test('should return correct package info when a single package has a dependency }); }); +test('should work for openapi_spec_validator', (t) => { + return Promise.resolve() + .then(() => { + chdirWorkspaces('pip-app-with-openapi_spec_validator'); + const venvCreated = testUtils.ensureVirtualenv( + 'pip-app-with-openapi_spec_validator' + ); + t.teardown( + testUtils.activateVirtualenv('pip-app-with-openapi_spec_validator') + ); + if (venvCreated) { + testUtils.pipInstall(); + } + }) + .then(() => { + return plugin.inspect('.', 'requirements.txt'); + }) + .then(async (result) => { + t.ok(result.dependencyGraph, 'graph generated'); + t.end(); + }); +}); + test('Pipfile package found conditionally based on python version', (t) => { return Promise.resolve() .then(() => { diff --git a/test/workspaces/pip-app-with-openapi_spec_validator/requirements.txt b/test/workspaces/pip-app-with-openapi_spec_validator/requirements.txt new file mode 100644 index 00000000..1752c1e5 --- /dev/null +++ b/test/workspaces/pip-app-with-openapi_spec_validator/requirements.txt @@ -0,0 +1 @@ +openapi_spec_validator