mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix tests and change nosetests flags so asserts show what comparisons failed
This commit is contained in:
parent
618a519ee3
commit
06cfc52afd
2 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -59,7 +59,7 @@ RPMNVR = "$(NAME)-$(VERSION)-$(RPMRELEASE)$(RPMDIST)"
|
|||
all: clean python
|
||||
|
||||
tests:
|
||||
PYTHONPATH=./lib nosetests -v
|
||||
PYTHONPATH=./lib nosetests -d -v
|
||||
|
||||
# To force a rebuild of the docs run 'touch VERSION && make docs'
|
||||
docs: $(MANPAGES)
|
||||
|
|
|
@ -300,14 +300,14 @@ class TestUtils(unittest.TestCase):
|
|||
|
||||
res = ansible.utils.template("test", template, {})
|
||||
|
||||
assert res == u'hello world\n'
|
||||
assert res == u'hello world'
|
||||
|
||||
def test_varReplace_include_script(self):
|
||||
template = 'hello $PIPE(echo world)'
|
||||
|
||||
res = ansible.utils.template("test", template, {})
|
||||
|
||||
assert res == u'hello world\n'
|
||||
assert res == u'hello world'
|
||||
|
||||
#####################################
|
||||
### Template function tests
|
||||
|
|
Loading…
Reference in a new issue