We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8591aed commit f962dc9Copy full SHA for f962dc9
spec/acceptance/declared_requirements_install_spec.rb
@@ -0,0 +1,24 @@
1
+require 'spec_helper_acceptance'
2
+
3
+describe 'requirements' do
4
+ it 'checks declared requirements file is installed to venv' do
5
+ pp = <<-EOS
6
+ file { '/tmp/requirements.txt':
7
+ ensure => 'present',
8
+ content => 'requests',
9
+ }
10
11
+ python::pyvenv { '/tmp/pyvenv':
12
13
14
15
+ python::requirements { '/tmp/requirements.txt':
16
+ virtualenv => '/tmp/pyvenv'
17
18
+ EOS
19
20
+ apply_manifest(pp, catch_failures: true)
21
22
+ expect(shell('/tmp/pyvenv/bin/pip3 list --no-index | grep requests').stdout).to match(%r{requests +\d+.\d+.\d+})
23
+ end
24
+end
0 commit comments