Add more testing to aquisition test

This commit is contained in:
Julian Stirling 2025-08-20 14:19:58 +01:00
parent c209d524c5
commit 46be94383a

View file

@ -35,12 +35,15 @@ def test_jpeg_and_array(client):
# Grab a jpeg from the stream
blob = client.grab_jpeg()
mjpeg_frame = Image.open(blob.open())
assert mjpeg_frame
# Verify throws an error if there are issues with the image
mjpeg_frame.verify()
assert mjpeg_frame.format == "JPEG"
# Capture a jpeg
blob = client.capture_jpeg(resolution="main")
jpeg_capture = Image.open(blob.open())
assert jpeg_capture
jpeg_capture.verify()
assert jpeg_capture.format == "JPEG"
# Capture an array
arrlist = client.capture_array(stream_name="main")