You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Jinja2 to tests_require, as the test suite currently outputs the following when run without Jinja2 installed:
test_contrib.TestContrib.test_upload_template_handles_jinja_template
upload_template() should work OK with Jinja2 template ...
Fatal error: Traceback (most recent call last):
File "fabric/contrib/files.py", line 129, in upload_template
from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
Unable to import Jinja2 -- see above.
Aborting.
ERROR
test_contrib.TestContrib.test_upload_template_jinja_and_no_template_dir ...
Fatal error: Traceback (most recent call last):
File "fabric/contrib/files.py", line 129, in upload_template
from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
Unable to import Jinja2 -- see above.
Aborting.
ERROR
<snip>
======================================================================
ERROR: test_contrib.TestContrib.test_upload_template_handles_jinja_template
upload_template() should work OK with Jinja2 template
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/home/user/repos/freebsd/ports/devel/py-fabric/work/Fabric-1.9.0/nose-1.3.3-py2.7.egg/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/mnt/home/user/repos/freebsd/ports/devel/py-fabric/work/Fabric-1.9.0/tests/server.py", line 478, in inner
return func(*args, **kwargs)
File "/mnt/home/user/repos/freebsd/ports/devel/py-fabric/work/Fabric-1.9.0/tests/test_contrib.py", line 69, in test_upload_template_handles_jinja_template
use_jinja=True, template_dir=template_dir)
File "fabric/contrib/files.py", line 139, in upload_template
abort(tb + "\nUnable to import Jinja2 -- see above.")
File "fabric/utils.py", line 34, in abort
sys.exit(1)
SystemExit: 1
<snip>
======================================================================
ERROR: test_contrib.TestContrib.test_upload_template_jinja_and_no_template_dir
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/home/user/repos/freebsd/ports/devel/py-fabric/work/Fabric-1.9.0/nose-1.3.3-py2.7.egg/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/mnt/home/user/repos/freebsd/ports/devel/py-fabric/work/Fabric-1.9.0/tests/server.py", line 478, in inner
return func(*args, **kwargs)
File "/mnt/home/user/repos/freebsd/ports/devel/py-fabric/work/Fabric-1.9.0/tests/test_contrib.py", line 81, in test_upload_template_jinja_and_no_template_dir
upload_template(fname, '/configfile.txt', {}, use_jinja=True)
File "fabric/contrib/files.py", line 139, in upload_template
abort(tb + "\nUnable to import Jinja2 -- see above.")
File "fabric/utils.py", line 34, in abort
sys.exit(1)
SystemExit: 1
<snip>
Ran 380 tests in 245.368s - FAILED (errors=2)
The text was updated successfully, but these errors were encountered:
Add Jinja2 to tests_require, as the test suite currently outputs the following when run without Jinja2 installed:
The text was updated successfully, but these errors were encountered: