little update

This commit is contained in:
2026-08-12 21:11:39 +03:00
parent e3d5de12fe
commit 3af436d48a
37 changed files with 2299 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
from cloud.vm_manager import VMManager
def test_error_response_keeps_non_json_body() -> None:
payload = VMManager._decode_error_response(b"<html>upstream error</html>")
assert payload == {"raw_response": "<html>upstream error</html>"}
assert VMManager._error_message(payload, "Bad Gateway") == (
"Bad Gateway: <html>upstream error</html>"
)