Skip to content

Commit 11b0b35

Browse files
Make resolve_dependencies integration test faster
Reference: #1087 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 1ebf507 commit 11b0b35

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
click==8.1.3

scanpipe/tests/test_pipelines.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,17 +922,15 @@ def test_scanpipe_resolve_dependencies_pipeline_integration_misc(self):
922922
pipeline_name = "resolve_dependencies"
923923
project1 = Project.objects.create(name="Analysis")
924924

925-
input_location = (
926-
self.data_location / "manifests" / "python-inspector-0.10.0.zip"
927-
)
925+
input_location = self.data_location / "manifests" / "requirements.txt"
928926
project1.copy_input_from(input_location)
929927

930928
run = project1.add_pipeline(pipeline_name)
931929
pipeline = run.make_pipeline_instance()
932930

933931
exitcode, out = pipeline.execute()
934932
self.assertEqual(0, exitcode, msg=out)
935-
self.assertEqual(26, project1.discoveredpackages.count())
933+
self.assertEqual(1, project1.discoveredpackages.count())
936934

937935
@mock.patch("scanpipe.pipes.resolve.resolve_dependencies")
938936
def test_scanpipe_resolve_dependencies_pipeline_pypi_integration(

0 commit comments

Comments
 (0)