Commit graph

14 commits

Author SHA1 Message Date
Richard Bowman
87c4a2aadf Provide both required arguments to move_in_image_coordinates
The integration test checks that moving in image coordinates fails
before the CSM thing is calibrated.
Unfortunately, it is missing the `y` argument, so it would fail either way.

This commit supplies the extra argument so that the failure should come from the right place.

It also changes the expected error to `ServerActionError` and adds a check
for the message, to verify it is due to missing calibration data.

A future version of the LabThings Client (#89) may raise a different
error if a required argument is missing, so fixing this will ensure
that upstream change doesn't break anything here.
2026-06-30 16:53:11 +01:00
Julian Stirling
071d62e8a0 Apply suggestions from code review of branch camera_modes
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2026-06-05 16:58:35 +01:00
Julian Stirling
853301ca5d Fix or x-fail integration tests 2026-06-05 16:58:35 +01:00
Julian Stirling
b9c6071bc7 Start to move tests onto new camera api 2026-06-05 16:58:35 +01:00
Richard Bowman
ee6911f4a7 PNG Capture
This adds an additional action to BaseCamera to capture and return a PNG Blob. It makes the PNG using Pillow, in a very similar way to `capture_jpeg`.

I have parametrized the test for `capture_jpeg` so it now tests both jpeg and png with the same code.
2026-05-15 13:14:27 +01:00
jaknapper
cc6866b2e5 Add tests for measure settling time 2026-05-11 12:49:52 +01:00
Julian Stirling
93d7d75b0d Create basic gallery class that finds Things that want to show data 2026-05-06 10:05:34 +01:00
Julian Stirling
ec27b7d5c5 Update integration tests for application_config 2026-03-04 17:22:03 +00:00
Julian Stirling
ad8dd55cca Update integration test for new labthings client exceptions 2026-01-12 16:23:10 +00:00
Julian Stirling
6ec60523cd Ensure that each integration test tests more than just a lack of errors 2026-01-12 16:23:10 +00:00
Julian Stirling
8b51a66ae4 Move test_dummy_server out of unit tests and into integration tests. 2026-01-12 16:23:10 +00:00
Julian Stirling
c9ac85bffc Rename the test that fully boots the server to lifecycle_test 2026-01-12 16:23:09 +00:00
Julian Stirling
4a8b88b34b Fix config path in integration test. Don't use fallback in integration test as it masks failure. 2025-12-19 09:31:45 +00:00
Julian Stirling
782977e01c Move integration tests to tests dir 2025-12-18 17:30:56 +00:00