mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
fix(remote): end a remote session from before its create to after its DELETE
This commit is contained in:
@@ -69,17 +69,6 @@ def test_post_sends_json_body(client: RemoteClient) -> None:
|
||||
assert captured["body"] == {"service": "EXAMPLE"}
|
||||
|
||||
|
||||
@responses.activate
|
||||
def test_delete_returns_json(client: RemoteClient) -> None:
|
||||
responses.add(
|
||||
responses.DELETE,
|
||||
"http://srv:8786/api/session/abc",
|
||||
json={"status": "deleted"},
|
||||
status=200,
|
||||
)
|
||||
assert client.delete("/api/session/abc") == {"status": "deleted"}
|
||||
|
||||
|
||||
@responses.activate
|
||||
def test_4xx_raises_systemexit_with_logged_error(client: RemoteClient, caplog: pytest.LogCaptureFixture) -> None:
|
||||
responses.add(
|
||||
|
||||
Reference in New Issue
Block a user