Skip to content

Commit

Permalink
add spec test for index parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesschillinger-dm committed May 22, 2023
1 parent 7100704 commit 530b9ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/defines/pyvenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
}
end
end
context 'custom index is provided' do

let :params do
{
index: 'https://site.tld',
}
end
it { is_expected.to contain_exec('python_virtualenv_/opt/env').with_command('pyvenv-3.5 --clear /opt/env && /opt/env/bin/pip --log /opt/env/pip.log install -i https://site.tld --upgrade pip && /opt/env/bin/pip --log /opt/env/pip.log install -i https://site.tld --upgrade setuptools') }
end
end

context "prompt on #{os} with python 3.6" do
Expand Down

0 comments on commit 530b9ed

Please sign in to comment.