Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
admons committed May 10, 2023
1 parent 3266372 commit 0936778
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/system/inspect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openapi_spec_validator

0 comments on commit 0936778

Please sign in to comment.