Update argument names in picamera tests
This commit is contained in:
parent
7cd6b11411
commit
23a3a5b464
2 changed files with 5 additions and 5 deletions
|
|
@ -40,7 +40,7 @@ def test_jpeg_and_array(client):
|
|||
assert mjpeg_frame.format == "JPEG"
|
||||
|
||||
# Capture a jpeg
|
||||
blob = client.capture_jpeg(resolution="main")
|
||||
blob = client.capture_jpeg(stream_name="main")
|
||||
jpeg_capture = Image.open(blob.open())
|
||||
jpeg_capture.verify()
|
||||
assert jpeg_capture.format == "JPEG"
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ def _test_exposure_time_drift(desired_time: int) -> None:
|
|||
assert abs(pre_capture_et - desired_time) < EXPOSURE_TOL
|
||||
|
||||
for i in range(10):
|
||||
client.capture_jpeg(resolution="full")
|
||||
client.capture_jpeg(stream_name="full")
|
||||
if i == 0:
|
||||
# Exposure can update on first capture, due to frame rate restrictions
|
||||
first_et = client.exposure_time
|
||||
|
|
@ -80,7 +80,7 @@ def _test_exposure_time_drift(desired_time: int) -> None:
|
|||
time.sleep(0.5)
|
||||
# Check before and after capture
|
||||
assert client.exposure_time == frame_et
|
||||
client.capture_jpeg(resolution="full")
|
||||
client.capture_jpeg(stream_name="full")
|
||||
assert client.exposure_time == frame_et
|
||||
print("Exposure time didn't change!!")
|
||||
print(f"End of test for exposure target {desired_time}")
|
||||
|
|
@ -106,7 +106,7 @@ def test_exposure_time_on_start_and_stop_stream():
|
|||
# Take a couple of images to make sure that the exposure is adjusted to
|
||||
# a hardware compatible value.
|
||||
for _i in range(2):
|
||||
client.capture_jpeg(resolution="full")
|
||||
client.capture_jpeg(stream_name="full")
|
||||
# Save this time.
|
||||
set_time = client.exposure_time
|
||||
assert abs(set_time - desired_time) < EXPOSURE_TOL
|
||||
|
|
@ -136,7 +136,7 @@ def _load_camera_and_return_exposure(tmpdir: str) -> int:
|
|||
# Take a couple of images to make sure that the exposure is adjusted to
|
||||
# a hardware compatible value.
|
||||
for _i in range(2):
|
||||
client.capture_jpeg(resolution="full")
|
||||
client.capture_jpeg(stream_name="full")
|
||||
# Save this time.
|
||||
return client.exposure_time
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue