From ffd958f8239b41e08581d85f735e35940578c9be Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Wed, 2 Jul 2025 14:33:23 +0100 Subject: [PATCH] Remove test Thing that is is never used. --- .../things/test.py | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/openflexure_microscope_server/things/test.py diff --git a/src/openflexure_microscope_server/things/test.py b/src/openflexure_microscope_server/things/test.py deleted file mode 100644 index 318003ca..00000000 --- a/src/openflexure_microscope_server/things/test.py +++ /dev/null @@ -1,32 +0,0 @@ -""" -OpenFlexure Microscope API test Thing - -This Thing is intended only for use testing out the API and client(s). -""" - -from labthings_fastapi.thing import Thing -from labthings_fastapi.decorators import thing_action, thing_property -from labthings_fastapi.dependencies.invocation import CancelHook, InvocationLogger - - -class APITestThing(Thing): - _counter: int = 0 - - @thing_property - def counter(self) -> int: - return self._counter - - @thing_action - def count_slowly( - self, - cancel: CancelHook, - logger: InvocationLogger, - n=100, - dt=0.1, - ) -> None: - for i in range(n): - self._counter = i - print(f"counted to {i}") - logger.info(f"Counted to {i}") - cancel.sleep(dt) - self._counter = n