Skip to content

Commit

Permalink
Merge pull request #923 from traylenator/pytests
Browse files Browse the repository at this point in the history
Ignore more installed versions of python during tests
  • Loading branch information
bastelfreak committed Mar 20, 2020
2 parents 26e4cb2 + d45621c commit 8c0e6a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/unit/python_dir_spec.rb
Expand Up @@ -42,7 +42,9 @@

it 'is empty string if python not installed' do
Facter::Util::Resolution.stubs(:which).with('python').returns(nil)
Facter::Util::Resolution.stubs(:which).with('python2').returns(nil)
Facter::Util::Resolution.stubs(:which).with('python3').returns(nil)
File.stubs(:exist?).with('/usr/libexec/platform-python').returns(nil)
expect(Facter.fact(:python_dir).value).to eq('')
end
end

0 comments on commit 8c0e6a0

Please sign in to comment.