Remove a load more /names/

This commit is contained in:
Julian Stirling 2025-12-14 16:20:08 +00:00
parent e7f669cb56
commit 9ef417971f
15 changed files with 39 additions and 41 deletions

View file

@ -32,10 +32,10 @@ def camera_test_client(
if settings_folder is None:
settings_folder = tmpdir
server = lt.ThingServer(settings_folder=settings_folder)
server.add_thing(cam, "/camera/")
server.add_thing(cam, "camera")
with TestClient(server.app) as test_client:
client = lt.ThingClient.from_url("/camera/", client=test_client)
client = lt.ThingClient.from_url("camera", client=test_client)
yield client
del server
del cam

View file

@ -26,7 +26,7 @@ def picamera_client(picamera_thing) -> lt.ThingClient:
This fixture:
* Sets up a ThingServer,
* Registers a StreamingPiCamera2 instance at the "/camera/" endpoint
* Registers a StreamingPiCamera2 instance at the "camera" endpoint
* Provides a ThingClient for interacting with it during tests.
"""
with camera_test_client(cam=picamera_thing) as picamera_client: