Update picamera tests to use new test environment
This commit is contained in:
parent
b70d36c629
commit
17b1f0e72a
4 changed files with 50 additions and 78 deletions
|
|
@ -3,13 +3,15 @@
|
|||
import tempfile
|
||||
from copy import deepcopy
|
||||
|
||||
from openflexure_microscope_server.things.camera.picamera import StreamingPiCamera2
|
||||
|
||||
from .cam_test_utils import camera_test_client
|
||||
|
||||
|
||||
def test_calibration(picamera_client_and_server):
|
||||
def test_calibration(picamera_test_env):
|
||||
"""Check that full auto calibrate completes and set the expected values."""
|
||||
picamera_client, server = picamera_client_and_server
|
||||
picamera_thing = server.things["camera"]
|
||||
picamera_client, server = picamera_test_env.get_thing_client["camera"]
|
||||
picamera_thing = picamera_test_env.get_thing_by_type(StreamingPiCamera2)
|
||||
# Check the calibration_required property used by the calibration wizard
|
||||
assert picamera_thing.calibration_required
|
||||
# Save copy of default tuning file for end of test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue