diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-09-06 01:24:06 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-09-06 16:13:00 (GMT) |
commit | a5d98286b92c68f304dd2718d9643c2711cd6cf0 (patch) | |
tree | d0d0b0d7e8e489e28126c9a91d8044037df60dea | |
parent | fcda7858456a731fb227e642c00e922f2b113963 (diff) |
quiet drop_mongo stdout command for clear the screen
-rw-r--r-- | webapp/webapp/features/terrain.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/webapp/features/terrain.py b/webapp/webapp/features/terrain.py index 7e23407..7abba0b 100644 --- a/webapp/webapp/features/terrain.py +++ b/webapp/webapp/features/terrain.py @@ -1,6 +1,7 @@ from lettuce import world, before, after from splinter import Browser from fabric.api import local +from fabric.context_managers import hide from django.conf import settings from django.core import management @@ -17,7 +18,9 @@ def exit_browser(total): def drop_mongo(): db = settings.MONGO_SETTINGS['NAME'] - local("mongo {mongo_db} --eval 'db.dropDatabase()'".format(mongo_db=db)) + with hide('running'): + cmd = "mongo {mongo_db} --eval 'db.dropDatabase()' > /dev/null" + local(cmd.format(mongo_db=db)) def drop_sqlite(): |