Fix the editable condition into pip module (#19028) (#19688)

* Fix the editable condition into pip module (#19028)

* Add editable to tests

Default changed to False, so now editable: True is needed explicitly in
tests
This commit is contained in:
Lujeni 2017-07-14 11:54:04 +02:00 committed by John R Barker
parent 44730c28cc
commit 661791dcb7
2 changed files with 16 additions and 21 deletions

View file

@ -80,7 +80,7 @@
# Test virtualenv installations
- name: make sure the test env doesn't exist
- name: "make sure the test env doesn't exist"
file: state=absent name={{ output_dir }}/pipenv
- name: install a working version of setuptools in the virtualenv
@ -100,22 +100,24 @@
that:
- "req_installed.changed"
- name: repeat installation to check status didn't change
- name: "repeat installation to check status didn't change"
pip: requirements={{ output_dir}}/pipreq.txt
virtualenv={{ output_dir }}/pipenv
register: req_installed
- name: check that a change didn't occurr this time (bug ansible#1705)
- name: "check that a change didn't occurr this time (bug ansible#1705)"
assert:
that:
- "not req_installed.changed"
- name: install the same module from url
pip: name="git+https://github.com/dvarrazzo/pyiso8601#egg=pyiso8601"
virtualenv={{ output_dir }}/pipenv
pip:
name: "git+https://github.com/dvarrazzo/pyiso8601#egg=pyiso8601"
virtualenv: "{{ output_dir }}/pipenv"
editable: True
register: url_installed
- name: check that a change didn't occurr (bug ansible-modules-core#1645)
- name: "check that a change didn't occurr (bug ansible-modules-core#1645)"
assert:
that:
- "not url_installed.changed"