Update docker-py and dockerpty
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
a55210413c
commit
19ae76a442
4 changed files with 10 additions and 8 deletions
|
|
@ -79,8 +79,9 @@ class CLITestCase(unittest.TestCase):
|
|||
TopLevelCommand().dispatch(['help', 'nonexistent'], None)
|
||||
|
||||
@pytest.mark.xfail(IS_WINDOWS_PLATFORM, reason="requires dockerpty")
|
||||
@mock.patch('compose.cli.main.RunOperation', autospec=True)
|
||||
@mock.patch('compose.cli.main.PseudoTerminal', autospec=True)
|
||||
def test_run_interactive_passes_logs_false(self, mock_pseudo_terminal):
|
||||
def test_run_interactive_passes_logs_false(self, mock_pseudo_terminal, mock_run_operation):
|
||||
command = TopLevelCommand()
|
||||
mock_client = mock.create_autospec(docker.Client)
|
||||
mock_project = mock.Mock(client=mock_client)
|
||||
|
|
@ -106,7 +107,7 @@ class CLITestCase(unittest.TestCase):
|
|||
'--name': None,
|
||||
})
|
||||
|
||||
_, _, call_kwargs = mock_pseudo_terminal.mock_calls[0]
|
||||
_, _, call_kwargs = mock_run_operation.mock_calls[0]
|
||||
assert call_kwargs['logs'] is False
|
||||
|
||||
@pytest.mark.xfail(IS_WINDOWS_PLATFORM, reason="requires dockerpty")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue