summaryrefslogtreecommitdiff
path: root/spec/integration/python
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/python')
-rw-r--r--spec/integration/python/pipenv_spec.rb27
1 files changed, 24 insertions, 3 deletions
diff --git a/spec/integration/python/pipenv_spec.rb b/spec/integration/python/pipenv_spec.rb
index 4d6559c..1ea60fe 100644
--- a/spec/integration/python/pipenv_spec.rb
+++ b/spec/integration/python/pipenv_spec.rb
@@ -26,7 +26,7 @@ RSpec.describe "pipenv" do
expect(report).to match_schema(version: '2.0')
expect(report[:version]).not_to be_empty
expect(report[:licenses]).not_to be_empty
- expect(report[:dependencies].map { |x| x[:name] }).to include("six")
+ expect(report[:dependencies].map { |x| x[:name] }).to contain_exactly("six")
end
end
@@ -72,7 +72,26 @@ RSpec.describe "pipenv" do
expect(report).not_to be_empty
expect(report[:version]).not_to be_empty
expect(report[:licenses]).not_to be_empty
- expect(report[:dependencies].count).to eql(18)
+ expect(report[:dependencies].map { |x| x[:name] }).to match_array([
+ "appdirs",
+ "backports.shutil_get_terminal_size",
+ "click",
+ "colorama",
+ "crayons",
+ "delegator.py",
+ "packaging",
+ "parse",
+ "pexpect",
+ "ptyprocess",
+ "py",
+ "pyparsing",
+ "pytest",
+ "requests",
+ "requirements-parser",
+ "setuptools",
+ "six",
+ "toml",
+ ])
end
end
@@ -121,7 +140,9 @@ RSpec.describe "pipenv" do
expect(report).not_to be_empty
expect(report[:version]).not_to be_empty
expect(report[:licenses]).not_to be_empty
- expect(report[:dependencies].count).to eql(7)
+ expect(report[:dependencies].map { |x| x[:name] }).to match_array([
+ 'certifi', 'chardet', 'idna', 'requests', 'urllib3', 'py', 'pytest'
+ ])
end
end
end