diff options
| author | mo khan <mo.khan@gmail.com> | 2020-08-17 16:23:28 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-18 09:27:34 -0600 |
| commit | a54789bcfe9e05ab42dfb6e03457279384e343fe (patch) | |
| tree | 9f0ad8087db423cf57b1e96451a0c977422a50d7 /spec/integration/python/pip_spec.rb | |
| parent | 24695063d1ba9a73ba92a44fae0813d5492cf29c (diff) | |
Update license_finder to 6.8.1
* Update CHANGELOG
* Add default retry for all jobs
* Ensure all deb packages are built
Diffstat (limited to 'spec/integration/python/pip_spec.rb')
| -rw-r--r-- | spec/integration/python/pip_spec.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/integration/python/pip_spec.rb b/spec/integration/python/pip_spec.rb index a52b992..9c2721d 100644 --- a/spec/integration/python/pip_spec.rb +++ b/spec/integration/python/pip_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe "pip" do @@ -100,10 +102,20 @@ RSpec.describe "pip" do context "when a project uses a custom `SETUP_CMD`" do before do runner.add_file('requirements.txt', 'six==1.14.0') + runner.add_file('.python-version', '3.8.4') + runner.add_file('custom.sh') do + <<~SCRIPT + #!/bin/bash -lx + + asdf install python 3.8.4 + asdf reshim + pip install -r requirements.txt + SCRIPT + end end it 'detects the software licenses' do - report = runner.scan(env: { 'SETUP_CMD' => 'pip install -r requirements.txt' }) + report = runner.scan(env: { 'SETUP_CMD' => 'bash custom.sh' }) expect(report).to match_schema(version: '2.0') expect(report.licenses_for('six')).to match_array(["MIT"]) |
