Add test of logic for selecting worflow.

This commit is contained in:
Julian Stirling 2026-01-18 14:23:18 +00:00
parent b22fcf4b88
commit eb93342d9f
3 changed files with 160 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import threading
import time
from datetime import datetime
from subprocess import SubprocessError
from types import TracebackType
from typing import (
Annotated,
Any,
@ -164,6 +165,17 @@ class SmartScanThing(lt.Thing):
self._workflow_name = valid_name
return self
def __exit__(
self,
_exc_type: type[BaseException],
_exc_value: Optional[BaseException],
_traceback: Optional[TracebackType],
) -> None:
"""Clean up after context manager is closed.
In this case it doesn't need to do anything.
"""
# Note that the default detector name is set at init. This is over written if
# setting is loaded from disk.
@lt.setting