Правки html формата
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "plba"
|
||||
version = "0.3.11"
|
||||
version = "0.3.13"
|
||||
description = "Platform runtime for business applications"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
@@ -102,15 +102,15 @@ class TraceResponseRenderer:
|
||||
--step: #ffffff;
|
||||
--link: #66d9ef;
|
||||
--error: #ff817d;
|
||||
--warning: #e5801d;
|
||||
--info: #73a0cf;
|
||||
--warning: #e9ebec;
|
||||
--info: #d6d7d9;
|
||||
--other: #ececec;
|
||||
}}
|
||||
body {{
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font: 13px/1.1 "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
font: 13px/1.1 "SFMono-Regular", monospace;
|
||||
}}
|
||||
.page {{
|
||||
padding: 14px 16px 24px;
|
||||
|
||||
@@ -205,11 +205,11 @@ def test_trace_endpoint_returns_html_page_with_related_links() -> None:
|
||||
assert "--bg: #000000;" in response.text
|
||||
assert "--fg: #ececec;" in response.text
|
||||
assert "--step: #ffffff;" in response.text
|
||||
assert "--info: #73a0cf;" in response.text
|
||||
assert "--warning: #e5801d;" in response.text
|
||||
assert "--info: #d6d7d9;" in response.text
|
||||
assert "--warning: #e9ebec;" in response.text
|
||||
assert "--error: #ff817d;" in response.text
|
||||
assert "--other: #ececec;" in response.text
|
||||
assert 'font: 13px/1.1 "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;' in response.text
|
||||
assert 'font: 13px/1.1 "SFMono-Regular", monospace;' in response.text
|
||||
assert '<div class="line">trace_id: <a href="/traces/trace-1?format=html&levels=ERROR%2CWARNING%2CINFO&attrs_json=true">trace-1</a></div>' in response.text
|
||||
assert '<div class="line">parent_id: <a href="/traces/parent-1?format=html&levels=ERROR%2CWARNING%2CINFO&attrs_json=true">parent-1</a></div>' in response.text
|
||||
assert '<div class="line">child_ids:</div>' in response.text
|
||||
|
||||
Reference in New Issue
Block a user