Skip to content

Commit

Permalink
add basic unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwidman committed Jul 25, 2023
1 parent 96306ed commit 5f524ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/spec/dependabot/python/file_fetcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@
expect(file_fetcher_instance.files.count).to eq(2)
expect(file_fetcher_instance.files.map(&:name)).to include("setup.cfg")
end

it "exposes the expected ecosystem_versions metric" do
expect(file_fetcher_instance.ecosystem_versions).to eq({
languages: { python: { "max" => "3.11", "raw" => "unknown" } }
})
end
end

context "with a requirements.txt, a setup.py and a requirements folder" do
Expand Down

0 comments on commit 5f524ed

Please sign in to comment.