diff --git a/tests/test_terminal.py b/tests/test_terminal.py index 4cc40f5c5e..9104b083bb 100644 --- a/tests/test_terminal.py +++ b/tests/test_terminal.py @@ -70,40 +70,3 @@ async def test_terminal_create_with_kwargs(fetch, ws_fetch, terminal_path, kill_ assert data['name'] == term_name await kill_all() - - -async def test_terminal_create_with_cwd( - fetch, - ws_fetch, - terminal_path, - kill_all -): - resp = await fetch( - 'api', 'terminals', - method='POST', - body=json.dumps({'cwd': str(terminal_path)}), - allow_nonstandard_methods=True, - ) - - data = json.loads(resp.body.decode()) - term_name = data['name'] - - ws = await ws_fetch( - 'terminals', 'websocket', term_name - ) - await ws.write_message(json.dumps(['stdin', 'pwd\r'])) - - messages = "" - while True: - try: - response = await asyncio.wait_for(ws.read_message(), timeout=1.0) - except asyncio.TimeoutError: - return messages - - response = json.loads(response) - if response[0] == "stdout": - messages += response[1] - - ws.close() - assert str(terminal_path) in messages - await kill_all()