Add checks for new calibration required property to tests
This commit is contained in:
parent
cfc1bbbe4c
commit
df979eb3cf
2 changed files with 16 additions and 1 deletions
|
|
@ -68,3 +68,14 @@ def test_handle_broken_frame():
|
|||
for _i in range(15):
|
||||
array = camera.grab_as_array(portal)
|
||||
assert isinstance(array, np.ndarray)
|
||||
|
||||
|
||||
def test_simulation_cam_calibration():
|
||||
"""Test that the simulated camera can be calibrated and reports calibration correctly."""
|
||||
camera = SimulatedCamera()
|
||||
with camera_server(camera):
|
||||
portal = lt.get_blocking_portal(camera)
|
||||
assert camera.calibration_required
|
||||
camera.full_auto_calibrate(portal)
|
||||
assert not camera.calibration_required
|
||||
assert camera.background_detector_status.ready
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue