Fix interactive run with networking
Make sure we connect the container to all required networks *after* starting the container and *before* hijacking the terminal. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
836ec70979
commit
b1ebf5ce17
3 changed files with 8 additions and 6 deletions
|
|
@ -72,8 +72,8 @@ class CLITestCase(unittest.TestCase):
|
|||
TopLevelCommand().dispatch(['help', 'nonexistent'], None)
|
||||
|
||||
@pytest.mark.xfail(IS_WINDOWS_PLATFORM, reason="requires dockerpty")
|
||||
@mock.patch('compose.cli.main.dockerpty', autospec=True)
|
||||
def test_run_with_environment_merged_with_options_list(self, mock_dockerpty):
|
||||
@mock.patch('compose.cli.main.PseudoTerminal', autospec=True)
|
||||
def test_run_with_environment_merged_with_options_list(self, mock_pseudo_terminal):
|
||||
command = TopLevelCommand()
|
||||
mock_client = mock.create_autospec(docker.Client)
|
||||
mock_project = mock.Mock(client=mock_client)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue