|
@@ -102,7 +102,7 @@ class CLITestCase(DockerClientTestCase):
|
|
self.assertEqual(old_ids, new_ids)
|
|
self.assertEqual(old_ids, new_ids)
|
|
|
|
|
|
|
|
|
|
- @patch('sys.stdout', new_callable=StringIO)
|
|
|
|
|
|
+ @patch('dockerpty.start')
|
|
def test_run_with_links(self, mock_stdout):
|
|
def test_run_with_links(self, mock_stdout):
|
|
mock_stdout.fileno = lambda: 1
|
|
mock_stdout.fileno = lambda: 1
|
|
|
|
|
|
@@ -113,7 +113,7 @@ class CLITestCase(DockerClientTestCase):
|
|
self.assertEqual(len(db.containers()), 1)
|
|
self.assertEqual(len(db.containers()), 1)
|
|
self.assertEqual(len(console.containers()), 0)
|
|
self.assertEqual(len(console.containers()), 0)
|
|
|
|
|
|
- @patch('sys.stdout', new_callable=StringIO)
|
|
|
|
|
|
+ @patch('dockerpty.start')
|
|
def test_run_with_no_deps(self, mock_stdout):
|
|
def test_run_with_no_deps(self, mock_stdout):
|
|
mock_stdout.fileno = lambda: 1
|
|
mock_stdout.fileno = lambda: 1
|
|
|
|
|
|
@@ -122,7 +122,7 @@ class CLITestCase(DockerClientTestCase):
|
|
db = self.command.project.get_service('db')
|
|
db = self.command.project.get_service('db')
|
|
self.assertEqual(len(db.containers()), 0)
|
|
self.assertEqual(len(db.containers()), 0)
|
|
|
|
|
|
- @patch('sys.stdout', new_callable=StringIO)
|
|
|
|
|
|
+ @patch('dockerpty.start')
|
|
def test_run_does_not_recreate_linked_containers(self, mock_stdout):
|
|
def test_run_does_not_recreate_linked_containers(self, mock_stdout):
|
|
mock_stdout.fileno = lambda: 1
|
|
mock_stdout.fileno = lambda: 1
|
|
|
|
|