Skip to content

Commit cefdafe

Browse files
committed
Remove test that should be downstream
1 parent dff30eb commit cefdafe

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

tests/test_terminal.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -70,40 +70,3 @@ async def test_terminal_create_with_kwargs(fetch, ws_fetch, terminal_path, kill_
7070

7171
assert data['name'] == term_name
7272
await kill_all()
73-
74-
75-
async def test_terminal_create_with_cwd(
76-
fetch,
77-
ws_fetch,
78-
terminal_path,
79-
kill_all
80-
):
81-
resp = await fetch(
82-
'api', 'terminals',
83-
method='POST',
84-
body=json.dumps({'cwd': str(terminal_path)}),
85-
allow_nonstandard_methods=True,
86-
)
87-
88-
data = json.loads(resp.body.decode())
89-
term_name = data['name']
90-
91-
ws = await ws_fetch(
92-
'terminals', 'websocket', term_name
93-
)
94-
await ws.write_message(json.dumps(['stdin', 'pwd\r']))
95-
96-
messages = ""
97-
while True:
98-
try:
99-
response = await asyncio.wait_for(ws.read_message(), timeout=1.0)
100-
except asyncio.TimeoutError:
101-
return messages
102-
103-
response = json.loads(response)
104-
if response[0] == "stdout":
105-
messages += response[1]
106-
107-
ws.close()
108-
assert str(terminal_path) in messages
109-
await kill_all()

0 commit comments

Comments
 (0)