Skip to content

Commit 645d247

Browse files
author
Robert Vincent
committed
Add tests.
1 parent 791ede9 commit 645d247

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

spec/classes/python_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,17 @@
314314
it { is_expected.to contain_class('python::install') }
315315
it { is_expected.to contain_package('pip').with_name('python2-pip') }
316316

317+
describe 'with python::version' do
318+
context 'python36' do
319+
let(:params) { { version: 'python36' } }
320+
321+
it { is_expected.to compile.with_all_deps }
322+
it { is_expected.to contain_package('pip').with_name('python36-pip') }
323+
it { is_expected.to contain_package('python').with_name('python36') }
324+
it { is_expected.to contain_package('python-dev').with_name('python36-devel') }
325+
it { is_expected.to contain_package('virtualenv').with_name('python36-virtualenv') }
326+
end
327+
end
317328
describe 'with python::provider' do
318329
context 'scl' do
319330
describe 'with version' do

0 commit comments

Comments
 (0)