Add HTML5 object access context
This commit is contained in:
@@ -238,6 +238,9 @@ def test_html5_object_context_fragment(tmp_path: Path):
|
||||
<Attribute name="Количество" qualifiedName="Документ.ЗаказПокупателя.Товары.Количество" />
|
||||
</TabularSection>
|
||||
</Document>
|
||||
<Role name="Менеджер" qualifiedName="Роль.Менеджер">
|
||||
<Right object="Документ.ЗаказПокупателя" read="true" write="true" post="true" />
|
||||
</Role>
|
||||
</Configuration>
|
||||
""",
|
||||
encoding="utf-8",
|
||||
@@ -259,6 +262,8 @@ def test_html5_object_context_fragment(tmp_path: Path):
|
||||
assert "Документ.ЗаказПокупателя" in context.text
|
||||
assert "Контрагент" in context.text
|
||||
assert "Товары" in context.text
|
||||
assert "Роль.Менеджер" in context.text
|
||||
assert "read, write, post" in context.text or "post, read, write" in context.text
|
||||
assert "<html" not in context.text
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user