Skip to content

Commit

Permalink
test(pip): Fixing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
taikuukaits committed Jun 18, 2019
1 parent 17b00e4 commit 9e0f30d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class PipEnvGraphBareTest {

@Test
void init() {
void testPackageTreatedAsProject() {
ExternalIdFactory factory = new ExternalIdFactory();
PipenvGraphParser parser = new PipenvGraphParser(factory);
List<String> pipFreeze = FunctionalTestFiles.asListOfStrings("/pip/pipenv_pip_freeze.txt");
Expand All @@ -35,7 +35,7 @@ void init() {
PipParseResult parseResult = parser.parse(projectName, projectVersion, pipFreeze, pipGraph);

Assert.assertFalse(parseResult.getCodeLocation().getDependencyGraph().hasDependency(factory.createNameVersionExternalId(Forge.PYPI, projectName, projectVersion)));
Assert.assertEquals(5, parseResult.getCodeLocation().getDependencyGraph().getRootDependencies()); //Should have found 5, not 3 (it should treat project as dependency).
Assert.assertEquals(5, parseResult.getCodeLocation().getDependencyGraph().getRootDependencies().size()); //Should have found 5, not 3 (it should treat project as dependency).

}
}

0 comments on commit 9e0f30d

Please sign in to comment.