Skip to content

Commit

Permalink
skip docker tests if not running
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Oct 27, 2024
1 parent 1ea5578 commit 625b19a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_v02.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
scope="session",
params=[
"local",
# "docker",
"docker",
os.getenv("CODEBOX_API_KEY"),
],
)
def codebox(request):
if os.system("docker ps > /dev/null 2>&1") != 0:
pytest.skip("Docker is not running")
return CodeBox(api_key=request.param) # api_key=request.param)


Expand Down

0 comments on commit 625b19a

Please sign in to comment.