Skip to content

Commit

Permalink
Merge pull request #647 from bastelfreak/tests
Browse files Browse the repository at this point in the history
cleanup acceptance tests
  • Loading branch information
bastelfreak authored Nov 5, 2022
2 parents 5eb38c2 + c0829d5 commit e5d11e9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
1 change: 0 additions & 1 deletion spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
pp = <<-EOS
class { 'python':
ensure => 'present',
version => '3',
pip => 'present',
dev => 'present',
venv => 'present',
Expand Down
9 changes: 3 additions & 6 deletions spec/acceptance/pip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
dev => 'present',
}
python::pyvenv { '/opt/test-venv':
Expand Down Expand Up @@ -41,8 +40,7 @@ class { 'python':
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
dev => 'present',
}
python::pyvenv { '/opt/test-venv':
Expand Down Expand Up @@ -80,8 +78,7 @@ class { 'python':
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
dev => 'present',
}
python::pyvenv { '/opt/test-venv':
Expand Down
25 changes: 10 additions & 15 deletions spec/acceptance/pyvenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
venv => 'present',
dev => 'present',
venv => 'present',
}
user { 'agent':
ensure => 'present',
Expand Down Expand Up @@ -41,9 +40,8 @@ class { 'python':
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
venv => 'present',
dev => 'present',
venv => 'present',
}
user { 'agent':
ensure => 'present',
Expand Down Expand Up @@ -82,9 +80,8 @@ class { 'python':
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
venv => 'present',
dev => 'present',
venv => 'present',
}
user { 'agent':
ensure => 'present',
Expand Down Expand Up @@ -120,9 +117,8 @@ class { 'python':
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
venv => 'present',
dev => 'present',
venv => 'present',
}
user { 'agent':
ensure => 'present',
Expand Down Expand Up @@ -158,9 +154,8 @@ class { 'python':
it 'works with no errors' do
pp = <<-PUPPET
class { 'python':
version => '3',
dev => 'present',
venv => 'present',
dev => 'present',
venv => 'present',
}
user { 'agent':
ensure => 'present',
Expand Down

0 comments on commit e5d11e9

Please sign in to comment.