コード例 #1
0
 def test_npm_dependency_parser_restrict_versions(self, args, expected):
     """Test NpmDependencyParser.restrict_versions()."""
     dep_parser = NpmDependencyParser()
     assert dep_parser.restrict_versions(args) == expected
コード例 #2
0
 def test_npm_dependency_parser_compose(self, args, expected):
     """Test NpmDependencyParser.compose()."""
     dep_parser = NpmDependencyParser()
     assert dep_parser.compose(args) == expected
コード例 #3
0
 def test_npm_dependency_parser_parse(self, args, expected):
     dep_parser = NpmDependencyParser()
     assert dep_parser.parse(args) == expected