From 306d93422674cfde48db5da001cb8199363af30f Mon Sep 17 00:00:00 2001 From: Randhir Date: Mon, 3 Mar 2025 22:38:47 +0000 Subject: [PATCH] Uncommented test case to test the fix. --- .../pip_compile_file_updater_spec.rb | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/python/spec/dependabot/python/file_updater/pip_compile_file_updater_spec.rb b/python/spec/dependabot/python/file_updater/pip_compile_file_updater_spec.rb index 0564b08a03f..894fe3db18d 100644 --- a/python/spec/dependabot/python/file_updater/pip_compile_file_updater_spec.rb +++ b/python/spec/dependabot/python/file_updater/pip_compile_file_updater_spec.rb @@ -490,23 +490,23 @@ end end - # context "with incompatible versions" do - # let(:manifest_fixture_name) { "incompatible_versions.in" } - # let(:generated_fixture_name) { "incompatible_versions.txt" } - # let(:dependency_name) { "pyyaml" } - # let(:dependency_version) { "6.0.1" } - # let(:dependency_previous_version) { "5.3.1" } - # let(:dependency_requirements) { [] } - # let(:dependency_previous_requirements) { [] } - - # it "raises an error indicating the dependencies are not resolvable", :slow do - # expect { updated_files }.to raise_error(Dependabot::DependencyFileNotResolvable) do |err| - # expect(err.message).to include( - # "There are incompatible versions in the resolved dependencies:\n pyyaml==6.0.1" - # ) - # end - # end - # end + context "with incompatible versions" do + let(:manifest_fixture_name) { "incompatible_versions.in" } + let(:generated_fixture_name) { "incompatible_versions.txt" } + let(:dependency_name) { "pyyaml" } + let(:dependency_version) { "6.0.1" } + let(:dependency_previous_version) { "5.3.1" } + let(:dependency_requirements) { [] } + let(:dependency_previous_requirements) { [] } + + it "raises an error indicating the dependencies are not resolvable", :slow do + expect { updated_files }.to raise_error(Dependabot::DependencyFileNotResolvable) do |err| + expect(err.message).to include( + "There are incompatible versions in the resolved dependencies:\n pyyaml==6.0.1" + ) + end + end + end context "with stripped extras" do let(:manifest_fixture_name) { "strip_extras.in" }