Re-enable resetting of a terminal before and after recording

This commit is contained in:
Marcin Kulik
2013-10-03 10:04:40 +02:00
parent e34b2dc991
commit b02e826c6d
2 changed files with 7 additions and 1 deletions

View File

@@ -55,5 +55,5 @@ class RecordCommand(object):
return self.confirmator.confirm("~ Do you want to upload it? [Y/n] ")
def _reset_terminal(self):
# subprocess.call(["reset"])
subprocess.call(["reset"])
pass

View File

@@ -1,4 +1,5 @@
import sys
import subprocess
from nose.tools import assert_equal
from commands.record import RecordCommand
@@ -50,6 +51,11 @@ class TestRecordCommand(Test):
self.recorder = FakeRecorder()
self.uploader = FakeUploader()
self.confirmator = FakeConfirmator()
self.real_subprocess_call = subprocess.call
subprocess.call = lambda *args: None
def tearDown(self):
subprocess.call = self.real_subprocess_call
def create_command(self, skip_confirmation):
return RecordCommand('http://the/url', 'a1b2c3', 'ls -l', 'the title',