|
2 | 2 | require 'support/python_environment' |
3 | 3 |
|
4 | 4 | describe 'dependencies in the manifest' do |
5 | | - before(:all) { @env = PythonEnvironment.new } |
| 5 | + context 'for Python 2' do |
| 6 | + before { @env = PythonEnvironment.new('flask_web_app') } |
6 | 7 |
|
7 | | - describe '#libffi' do |
8 | | - it 'can integrate with C-header files' do |
9 | | - @env.execute(file: 'libffi.py') do |output| |
10 | | - expect(output).to eq "hi there, world!\n" |
| 8 | + describe '#libffi' do |
| 9 | + it 'can integrate with C-header files' do |
| 10 | + @env.execute(file: 'libffi.py') do |output| |
| 11 | + expect(output).to eq "hi there, world!\n" |
| 12 | + end |
| 13 | + end |
| 14 | + end |
| 15 | + |
| 16 | + describe '#libmemcache' do |
| 17 | + it 'can interact with memcache server' do |
| 18 | + @env.execute(file: 'libmemcache.py') do |output| |
| 19 | + expect(output).to eq "Could not connect\n" |
| 20 | + end |
11 | 21 | end |
12 | 22 | end |
13 | 23 | end |
14 | 24 |
|
15 | | - describe '#libmemcache' do |
16 | | - it 'can interact with memcache server' do |
17 | | - @env.execute(file: 'libmemcache.py') do |output| |
18 | | - expect(output).to eq "Could not connect\n" |
| 25 | + context 'for Python 3' do |
| 26 | + before { @env = PythonEnvironment.new('flask_web_app_python_3') } |
| 27 | + |
| 28 | + describe '#libffi' do |
| 29 | + it 'can integrate with C-header files' do |
| 30 | + @env.execute(file: 'libffi.py') do |output| |
| 31 | + expect(output).to eq "hi there, world!\n" |
| 32 | + end |
| 33 | + end |
| 34 | + end |
| 35 | + |
| 36 | + describe '#libmemcache' do |
| 37 | + it 'can interact with memcache server' do |
| 38 | + @env.execute(file: 'libmemcache.py') do |output| |
| 39 | + expect(output).to eq "Could not connect\n" |
| 40 | + end |
19 | 41 | end |
20 | 42 | end |
21 | 43 | end |
|
0 commit comments