Richard Bowman
a9fff24848
Explicitly specify encoding
...
The update to pylint means we were failing because open()
doesn't specify the encoding everywhere. I have now specified utf-8
everywhere. This was patchy before, and is default behaviour on the
Pi. There's a slim chance it will cause some issues on Windows, but
that shouldn't affect anyone outside the developers.
I've also ignored a couple of new spurious warnings, and explicitly
ignored some unused variables.
2022-08-09 07:16:44 +01:00
Richard
d7d7a8cc8d
Blackened test_app.py
2021-08-09 22:01:14 +01:00
Richard
c831937b05
Validate thing description in tests
2021-07-26 02:48:45 +01:00
Richard
5e36837e5f
Blackened tests
2021-07-25 22:59:59 +01:00
Richard
80cebe3ebc
Add test for valid OpenAPI
2021-07-25 22:26:52 +01:00
Joel Collins
8e4d34205f
Isort
2021-01-08 12:34:41 +00:00
Joel Collins
bd7833c20f
Test app object initialises
2021-01-07 10:23:27 +00:00
Joel Collins
7866ec0f47
Static type analysis
2020-11-30 13:36:45 +00:00
Joel Collins
5137d1b9dc
Added basic unit tests of non-integrated functions
2020-11-25 15:25:17 +00:00
Joel Collins
9f5252194a
Updated all log strings to new format
2020-11-12 15:12:17 +00:00
Joel Collins
2bfb988460
Code formatting
2020-10-13 15:02:19 +01:00
Joel Collins
7c9f42f7f3
Optimised captures by using greenlets for disk IO
2020-06-11 11:42:31 +01:00
jtc42
6581612312
Implemented root API v2 routes
2019-11-14 16:33:00 +00:00
Joel Collins
4e7606aa0c
Blackened files
2019-11-06 22:07:16 +00:00
Joel Collins
dc794d4df8
Microscope capture objects now just handle on-disk data
2019-09-16 16:35:32 +01:00
Joel Collins
d9cb00568a
Blackened tests and docs
2019-09-15 14:21:24 +01:00
Joel Collins
29e1569e2d
Fixed attaching devices in plugin tests
2019-07-16 11:15:04 +01:00
Joel Collins
4715726e9c
Renamed pi.StreamingCamera to PiCameraStreamer
2019-07-16 11:12:24 +01:00
Joel Collins
743f4aaf0f
Fixed camera unit tests (may still be deprecated soon)
2019-06-25 18:03:56 +01:00
Joel Collins
e30956d761
Renamed video_resolution to stream_resolution
2019-05-20 10:55:43 +01:00
Joel Collins
eb4e979d1c
Updated tests
2019-02-19 13:42:25 +00:00
Joel Collins
0948c9308a
Went on a PEP-8 rampage
2019-01-31 17:20:46 +00:00
Joel Collins
84abfb9d7f
Updated to new metadata format
2019-01-18 14:49:59 +00:00
Joel Collins
4734cb3bb5
Renamed test_stage_movement method
2019-01-17 14:15:28 +00:00
Joel Collins
58d37354c3
Added capture resize to API unit test
2019-01-17 14:13:49 +00:00
Joel Collins
9b16857d44
Initial commit
2019-01-17 12:25:11 +00:00
Joel Collins
c71f0a7e2c
API client class to simplify API unit test
2019-01-17 12:25:05 +00:00
Joel Collins
3dc160d51f
Simplified test suite
2019-01-08 16:29:34 +00:00
Joel Collins
eb5c9c3fee
Updated simple plugin test
2019-01-08 16:15:39 +00:00
Joel Collins
78ce3a9a11
Explicit output stream must be specified when capturing
2019-01-08 15:46:57 +00:00
Joel Collins
3f69332240
Fixed TestUnencodedMethods
2019-01-08 13:25:46 +00:00
Joel Collins
3c34b43e32
Fixed TestCaptureMethods
2019-01-08 13:23:36 +00:00
Joel Collins
10d89e541b
Updated plugin tester
2018-12-12 15:01:10 +00:00
Joel Collins
8edf0fa027
Show full microscope plugin list
2018-12-11 17:19:39 +00:00
Joel Collins
3063967fe5
Explicitally pass config argument
2018-11-29 15:50:17 +00:00
Joel Collins
3925ef8cfe
Moved hardware config to a runtime config YAML file in home
2018-11-29 14:41:56 +00:00
Joel Collins
7a58b4e95e
Moved plugin mounting to a Microscope method
2018-11-23 17:51:13 +00:00
Joel Collins
2ef6395be2
Added demonstration of test plugins
2018-11-23 17:14:03 +00:00
Joel Collins
d04943c944
Integrated based uni test for stage movements
2018-11-08 11:31:42 +00:00
Joel Collins
0170fb24da
Started testing with microscope
2018-11-07 17:48:03 +00:00
Joel Collins
143be8f592
Started integrating into Microscope class
2018-11-07 15:06:41 +00:00
Joel Collins
a7598c5e5b
Pi camera is now persistent in StreamingCamera
2018-11-07 12:03:09 +00:00
Joel Collins
7b23ca4b8a
Moved generic camera methods into BaseCamera class
2018-11-07 10:54:39 +00:00
Joel Collins
360c836699
Minor reformat
2018-11-06 18:25:31 +00:00
Joel Collins
d99602bd3d
Allow log of multiple captures by StreamingCamera
2018-11-06 18:24:35 +00:00
Joel Collins
2f4f57a59b
Initial commit
2018-11-06 11:35:07 +00:00