Apply suggestions from code review of branch Increased-linting

Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
Julian Stirling 2025-09-19 10:16:47 +00:00
parent b4e28e232e
commit b9ca8b3094
5 changed files with 5 additions and 4 deletions

View file

@ -42,7 +42,7 @@ def thing_server():
server.add_thing(CameraStageMapper(), "/camera_stage_mapping/")
assert os.path.exists(os.path.join(temp_folder.name, "camera/"))
# Note: yield is important. If return is used the temp folder gets deleted
# before the test runs
# before the test runs. Silence PT022 as ruff doesn't think yield is needed.
yield server # noqa: PT022