jenkins-job-builder/jenkins_jobs
Thanh Ha fd01e9e916
Fix confirm() util true state
The confirm() util incorrectly returns true only when the answer is
false. This patch reverses the logic so that it properly returns true
when the user inputs a true statement.

Include test case for delete-all command usage to accept or abort.
Mocking the input builtin ensures that the behaviour resulting from the
user inputting 'y' or 'n' will remain tested for delete-all.

Change-Id: I742804a8efe7da8ca6aa70f20059d02758910deb
Co-Authored-By: Darragh Bailey <dbailey@hpe.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2016-09-20 22:16:29 -04:00
..
cli Convert multiline strings to concatenated single-quote. 2016-09-14 15:39:36 -04:00
modules Merge "Update junit plugin" 2016-09-14 19:30:24 +00:00
sphinx Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
__init__.py Refactor modules and templating. 2012-08-10 16:00:42 +00:00
builder.py Move CacheStorage to its own module. 2016-09-02 08:58:09 -07:00
cache.py Move CacheStorage to its own module. 2016-09-02 08:58:09 -07:00
config.py Convert multiline strings to concatenated single-quote. 2016-09-14 15:39:36 -04:00
constants.py Remove YamlParser from jenkins_jobs.builder 2015-04-22 11:59:07 -07:00
errors.py Move JJBConfigException to errors module. 2016-07-22 10:14:17 -07:00
formatter.py Python 3: Don't use BaseException.message attribute 2016-07-08 10:29:47 +09:00
local_yaml.py Cleanup various deprecation warnings. 2016-08-20 01:24:49 -04:00
parallel.py Rename "parallelize" decorator to "concurrent" 2016-08-18 22:47:48 -04:00
parser.py Be explicit about objects exported by modules. 2016-08-20 00:34:35 -07:00
registry.py Be explicit about objects exported by modules. 2016-08-20 00:34:35 -07:00
utils.py Fix confirm() util true state 2016-09-20 22:16:29 -04:00
version.py Get verison info for jenkins-job-builder 2014-10-22 09:46:10 -07:00
xml_config.py Be explicit about objects exported by modules. 2016-08-20 00:34:35 -07:00