Skip to content

Commit

Permalink
Reverted back since it was suppose to break.
Browse files Browse the repository at this point in the history
  • Loading branch information
randhircs committed Feb 24, 2025
1 parent cd60eed commit 4ce9389
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
26 changes: 13 additions & 13 deletions python/spec/dependabot/python/file_parser/setup_file_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,19 @@
its(:length) { is_expected.to eq(12) }
end

context "with an illformed_requirement" do
let(:setup_file_fixture_name) { "illformed_req.py" }

it "raises a helpful error" do
expect { parser.dependency_set }
.to raise_error do |error|
expect(error.class)
.to eq(Dependabot::DependencyFileNotEvaluatable)
expect(error.message)
.to eq('Illformed requirement ["==2.6.1raven==5.32.0"]')
end
end
end
# context "with an illformed_requirement" do
# let(:setup_file_fixture_name) { "illformed_req.py" }

# it "raises a helpful error" do
# expect { parser.dependency_set }
# .to raise_error do |error|
# expect(error.class)
# .to eq(Dependabot::DependencyFileNotEvaluatable)
# expect(error.message)
# .to eq('Illformed requirement ["="]')
# end
# end
# end

context "with an `open` statement" do
let(:setup_file_fixture_name) { "with_open.py" }
Expand Down
5 changes: 2 additions & 3 deletions python/spec/fixtures/setup_files/illformed_req.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ setup_requires =
pytest-runner
install_requires =
boto3==1.3.1
flake8 > 3.0.0, < 7.1.2
flake8 > 2.5.4, < 3.0.0
gocardless_pro
pandas==0.19.2
pep8==1.7.0
psycopg2==2.6.1
raven == 5.32.0
psycopg2==2.6.1raven == 5.32.0
requests==2.12.*
scipy==0.18.1
scikit-learn==0.18.1
Expand Down

0 comments on commit 4ce9389

Please sign in to comment.