(self)
| 62 | assert AppHostServer._extract_html(resource) == "<html>OK</html>" |
| 63 | |
| 64 | def test_blob_content(self): |
| 65 | html = "<html>blob</html>" |
| 66 | b64 = base64.b64encode(html.encode()).decode() |
| 67 | resource = {"contents": [{"uri": "ui://test", "blob": b64}]} |
| 68 | assert AppHostServer._extract_html(resource) == html |
| 69 | |
| 70 | def test_empty_contents(self): |
| 71 | assert AppHostServer._extract_html({"contents": []}) == "" |
nothing calls this directly
no test coverage detected