diff options
Diffstat (limited to 'spec/integration/python')
| -rw-r--r-- | spec/integration/python/pipenv_spec.rb | 49 |
1 files changed, 15 insertions, 34 deletions
diff --git a/spec/integration/python/pipenv_spec.rb b/spec/integration/python/pipenv_spec.rb index 7d02bf9..15e48dc 100644 --- a/spec/integration/python/pipenv_spec.rb +++ b/spec/integration/python/pipenv_spec.rb @@ -2,42 +2,23 @@ require 'spec_helper' RSpec.describe "pipenv" do context "when a project depends on a Pipfile.lock" do - let(:requirements) { "sentry-sdk>=0.7.7" } - - it 'produces a valid report' do - runner.add_file('Pipfile.lock') do - <<~RAW -{ - "_meta": { - "hash": { - "sha256": "d9b5cc506fc4feb9bf1ae7cadfd3737d5a0bd2b2d6c3fbcf0de3458bab34ad89" + let(:pipfile_lock_content) do + JSON.pretty_generate({ + "_meta": { + "hash": { "sha256": "" }, + "pipfile-spec": 6, + "requires": { "python_version": "3.8" }, + "sources": [ { "name": "pypi", "url": "https://pypi.org/simple", "verify_ssl": true } ] }, - "pipfile-spec": 6, - "requires": { - "python_version": "3.8" + "default": { + "six": { "hashes": [], "index": "pypi", "version": "==1.13.0" } }, - "sources": [ - { - "name": "pypi", - "url": "https://pypi.org/simple", - "verify_ssl": true - } - ] - }, - "default": { - "six": { - "hashes": [ - "sha256:1f1b7d42e254082a9db6279deae68afb421ceba6158efa6131de7b3003ee93fd", - "sha256:30f610279e8b2578cab6db20741130331735c781b56053c59c4076da27f06b66" - ], - "index": "pypi", - "version": "==1.13.0" - } - }, - "develop": {} -} - RAW - end + "develop": {} + }) + end + + it 'produces a valid report' do + runner.add_file('Pipfile.lock', pipfile_lock_content) report = runner.scan |
