Remove a load more /names/
This commit is contained in:
parent
e7f669cb56
commit
9ef417971f
15 changed files with 39 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue