We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7710a9c commit 2686388Copy full SHA for 2686388
tests/test_v02.py
@@ -14,7 +14,7 @@
14
],
15
)
16
def codebox(request):
17
- if os.system("docker ps > /dev/null 2>&1") != 0:
+ if request.param == "docker" and os.system("docker ps > /dev/null 2>&1") != 0:
18
pytest.skip("Docker is not running")
19
return CodeBox(api_key=request.param) # api_key=request.param)
20
@@ -247,8 +247,7 @@ async def test_async_stream_exec(codebox: CodeBox):
247
assert all(
248
chunks[i][1] < chunks[i + 1][1] for i in range(len(chunks) - 1)
249
), "Chunks should arrive with delay (ipython)"
250
- # Verify delay is approximately 0.03s
251
-
+ # Verify delay is approximately 0.01s
252
253
abs(chunks[i + 1][1] - chunks[i][1] - 0.01) < 0.005
254
for i in range(len(chunks) - 1)
0 commit comments