Pedro Algarvio
02034c4d86
Added a mocked test case for --no-install
passing to pip install
.
2013-07-14 18:59:18 +01:00
Pedro Algarvio
716f760e80
Added a mocked test case for --no-deps
passing to pip install
.
2013-07-14 18:59:13 +01:00
Pedro Algarvio
89fa6cecf4
Added a mocked test case for --ignore-installed
passing to pip install
.
2013-07-14 18:59:08 +01:00
Pedro Algarvio
892646bdee
Added a mocked test case for --force-reinstall
passing to pip install
.
2013-07-14 18:59:01 +01:00
Pedro Algarvio
03c88dac2c
Added a mocked test case for --upgrade
passing to pip install
.
2013-07-14 18:58:56 +01:00
Pedro Algarvio
27959701dc
Added support and a mocked test case for --global-options
passing to pip install
.
2013-07-14 18:58:49 +01:00
Pedro Algarvio
fd200c96b0
Added a mocked test case for --install-options
passing to pip install
.
...
* Replaced all occurrences of `basestring` with the `string_types` from salt's `_compat` module.
* Properly split install options on commas.
* Install options need to be quoted.
2013-07-14 18:58:44 +01:00
Pedro Algarvio
12d05e4b9a
Added a mocked test case for --exists-action
passing to pip install
.
...
* `exists_action` now only accepts it's valid settings, one of `s`, `i`, `w`, `b`, else, `CommandExecutionError`.
2013-07-14 18:58:37 +01:00
Pedro Algarvio
fb16313804
Added a mocked test case for --source
passing to pip install
.
2013-07-14 18:58:33 +01:00
Pedro Algarvio
85b0d7964d
Added a mocked test case for --no-download
passing to pip install
.
2013-07-14 18:58:28 +01:00
Pedro Algarvio
60ef910bad
Added a mocked test case for --download-cache
passing to pip install
.
2013-07-14 18:58:24 +01:00
Pedro Algarvio
bfcd91d700
Added a mocked test case for --download
passing to pip install
.
2013-07-14 18:58:12 +01:00
Pedro Algarvio
6fbbd5fb31
Added a mocked test case for --target
passing to pip install
.
2013-07-14 18:58:06 +01:00
Pedro Algarvio
aa8dda75c7
Added a mocked test case for --build
passing to pip install
.
2013-07-14 18:57:58 +01:00
Pedro Algarvio
6e0e8fddf9
Added a mocked test case for --no-index
passing to pip install
.
2013-07-14 18:57:52 +01:00
Pedro Algarvio
467d7de4e5
Added a mocked test case for --extra-index-url
passing to pip install
.
2013-07-14 18:57:47 +01:00
Pedro Algarvio
900682ac51
Added a mocked test case for --index-url
passing to pip install
.
2013-07-14 18:57:43 +01:00
Pedro Algarvio
d3c1c43781
Add tests for proper protocols to find_links
.
2013-07-14 18:57:42 +01:00
Pedro Algarvio
72600f67e6
Test string argument on pkgs
, editable
, find_links
and mirrors
.
2013-07-14 18:57:42 +01:00
Pedro Algarvio
3372034c07
Added a mocked test case for --timeout
passing to pip install
.
2013-07-14 18:57:37 +01:00
Pedro Algarvio
c582d721d9
Added a mocked test case for --log
passing to pip install
.
2013-07-14 18:57:29 +01:00
Pedro Algarvio
21698d187d
Update mocked test case to have the package name as last argument to the pip install
call.
2013-07-14 18:57:20 +01:00
Pedro Algarvio
5e58d4c4f3
Added mock test case for clear
, upgrade
and symlinks
for the virtualenv_mod
.
2013-07-14 13:23:18 +01:00
Pedro Algarvio
45c258e00b
Added test case for the prompt argument to virtualenv_mod
.
2013-07-14 13:04:11 +01:00
Pedro Algarvio
d8536c9f87
Add a mocked test case for salt.modules.virtualenv_mod
python argument.
...
* Updated the `virtualenv_mod` mock test case to patch `salt.utils.which` and `sys.modules` at class level as opposed to every function.
2013-07-14 12:53:23 +01:00
Pedro Algarvio
c65b1348fe
Fix Travis-CI for unit.modules.virtualenv_test.VirtualenvTestCase.test_no_site_packages_deprecation
...
Also mock the `virtualenv` module.
2013-07-13 23:23:30 +01:00
Pedro Algarvio
b6471e4099
Mock the virtualenv module in unit.modules.virtualenv_test.VirtualenvTestCase.test_issue_6031_multiple_extra_search_dirs
. Is Travis-CI still going to complain?
2013-07-13 23:14:12 +01:00
Pedro Algarvio
2b1cf0ac14
Patch _install_script()
since the virtualenv module will try to install some scripts.
2013-07-13 19:55:51 +01:00
Pedro Algarvio
05f2a23733
Make use of salttesting.helpers.ForceImportErrorOn
.
2013-07-13 19:55:50 +01:00
Pedro Algarvio
04133b07b4
Added mock test case to test getting the virtualenv version from shell and not from the module.
2013-07-13 19:55:50 +01:00
Pedro Algarvio
606c6d5ffb
Add test case which tests if non proper arguments raise an exception.
2013-07-13 19:55:50 +01:00
Pedro Algarvio
de572cb193
Fix the virtualenv
unittests which rely on it's version changing.
2013-07-13 19:55:49 +01:00
Pedro Algarvio
606413c063
Show a deprecation warning if no_site_packages
is used. Fixes #6027 .
...
If both `no_site_packages` and `system_site_packages` are used, throw an error.
Added the appropriate tests.
2013-07-13 19:55:49 +01:00
Pedro Algarvio
cde1c628ac
Added a test case to check for multiple extra search dirs support. Refs #6031 .
2013-07-13 19:55:49 +01:00
Pedro Algarvio
2fd8dc299a
Add test case to check for proper handling of --never-download
. Refs #6030 .
...
Also added assertions to check for proper deprecation logging messages output.
2013-07-13 19:55:49 +01:00
Pedro Algarvio
6126aa47be
Small code and print's cleanup.
2013-07-13 19:55:48 +01:00
Pedro Algarvio
8858d1183f
Add test case which tests for proper deprecated output based on virtualenv version.
2013-07-13 19:55:48 +01:00
Pedro Algarvio
64c9463a8b
Merge pull request #6143 from s0undt3ch/issues/6129-unexpected-__env__-keyword
...
Fix Issue #6129 unexpected `__env__` keyword
2013-07-13 11:53:19 -07:00
Pedro Algarvio
5bee1ca7f3
Re-implement 06ac67c84a
the right way since the state __env__
was being confused by the shell environment. Fixes #6129 .
2013-07-13 18:45:30 +01:00
Pedro Algarvio
269175145f
Update mocked rvm unit test since we now call cmd.run_all
instead of cmd.retcode
.
2013-07-13 17:46:46 +01:00
Xavier Barbosa
3f49000ba2
unittesting for file.serialize and yaml & json filters
2013-07-08 16:19:19 +02:00
Pedro Algarvio
66d86ca2d5
Added 2 test cases which prove that #5970 is invalid. Closes #5970 .
2013-07-06 12:48:13 +01:00
Pedro Algarvio
66d51a036f
Switch assertRaisesWithMessage
with assertRaises
. The first was not working as supposed.
2013-07-05 01:21:00 +01:00
Pedro Algarvio
3c3933d25e
Test for the proper exception, remove stray character left behind.
2013-07-05 00:57:47 +01:00
Pedro Algarvio
edf66fd3fe
pip
allows multiple --find-links
to be passed. Added mocked tests too.
2013-07-05 00:54:11 +01:00
Pedro Algarvio
e6aa92901d
Add multiple editable's and pkgs+editable's test cases.
2013-07-04 17:24:24 +01:00
Pedro Algarvio
6158edee2d
Add a mocked unit testcase to test for multiple mirrors support. Refs #5940 .
2013-07-04 15:01:05 +01:00
Pedro Algarvio
f8216aa584
Fix unit tests to expect the new, single quotes and less wasted white-space, output.
2013-07-04 14:50:07 +01:00
Joost Cassee
7fd85c2963
Allow listing a single module in a top match
...
This makes the following valid syntax for the top.sls file:
base:
tommy.example.com: webserver
jerry.example.com: dbserver
alberon.example.com: mailserver
develop:
saturn.example.com: webserver
2013-07-04 00:20:08 +02:00
Pedro Algarvio
d6049a92b5
Use an unicode aware context in the jinja render call. Refs #3436
2013-07-02 14:28:20 +01:00