Skip to content

Commit 2686388

Browse files
committed
fix test skipping and typo
1 parent 7710a9c commit 2686388

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_v02.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
)
1616
def codebox(request):
17-
if os.system("docker ps > /dev/null 2>&1") != 0:
17+
if request.param == "docker" and os.system("docker ps > /dev/null 2>&1") != 0:
1818
pytest.skip("Docker is not running")
1919
return CodeBox(api_key=request.param) # api_key=request.param)
2020

@@ -247,8 +247,7 @@ async def test_async_stream_exec(codebox: CodeBox):
247247
assert all(
248248
chunks[i][1] < chunks[i + 1][1] for i in range(len(chunks) - 1)
249249
), "Chunks should arrive with delay (ipython)"
250-
# Verify delay is approximately 0.03s
251-
250+
# Verify delay is approximately 0.01s
252251
assert all(
253252
abs(chunks[i + 1][1] - chunks[i][1] - 0.01) < 0.005
254253
for i in range(len(chunks) - 1)

0 commit comments

Comments
 (0)