semantics
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# #region test_layout_utils [C:3] [TYPE TestModule] [SEMANTICS test, layout, superset, height, estimation]
|
||||
# #region test_layout[EXT:internal:_utils] [C:3] [TYPE TestModule] [SEMANTICS test, layout, superset, height, estimation]
|
||||
# @BRIEF Contract tests for layout utility functions — _estimate_markdown_height.
|
||||
# Verifies the height estimation formula: empty → 19, short text → computed,
|
||||
# padding accounted for, and long text capped at 200.
|
||||
@@ -11,7 +11,7 @@
|
||||
# @TEST_EDGE: very_long_content -> capped at maximum height (200)
|
||||
import pytest
|
||||
|
||||
from src.core.superset_client._layout_utils import _estimate_markdown_height
|
||||
from src.core.superset_client._layout[EXT:internal:_utils] import _estimate_markdown_height
|
||||
|
||||
|
||||
class TestEstimateMarkdownHeight:
|
||||
@@ -52,4 +52,4 @@ class TestEstimateMarkdownHeight:
|
||||
content = "<br/><hr/><div></div>"
|
||||
assert _estimate_markdown_height(content) == 19
|
||||
# #endregion test_html_only_content
|
||||
# #endregion test_layout_utils
|
||||
# #endregion test_layout[EXT:internal:_utils]
|
||||
|
||||
Reference in New Issue
Block a user