Skip to content

Commit

Permalink
Fix path to local image for test
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Jul 3, 2024
1 parent c05374d commit 4b15147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/client_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import posixpath
import socket
import subprocess
import time
Expand Down Expand Up @@ -120,6 +121,7 @@ def test_init_output_logging(client, server, run):
def test_log_image(client, server, run):
# test logging some images
for i in range(100):
img_local = posixpath.join(os.path.dirname(__file__), "dice.png")
assert (
client.log_image(run.info.run_id, "dice.png", "images", "These are dice", 0, 640, 480, "png", i, 0) == None
client.log_image(run.info.run_id, img_local, "images", "These are dice", 0, 640, 480, "png", i, 0) == None
)

0 comments on commit 4b15147

Please sign in to comment.