<filename>docker/sane-doc-reports/src/tests/library/elements/test_markdown_md_button.py
from sane_doc_reports import conf
from sane_doc_reports.populate.Report import Report
from tests.utils import _transform


def test_markdown_md_button():
    report = Report(*_transform('elements/markdown_md_button.json'))
    report.populate_report()

    d = report.document

    # Don't find the %%% sings, but do find the message contents
    assert len(d.element.xpath("//w:t[contains(text(), '%')]")) == 0
    assert len(d.element.xpath("//w:t[contains(text(), 'hi 1')]")) == 1


<filename>docker/sane-doc-reports/src/tests/library/elements/test_markdown_md_button.py
from sane_doc_reports import conf
from sane_doc_reports.populate.Report import Report
from tests.utils import _transform


def test_markdown_md_button():
    report = Report(*_transform('elements/markdown_md_button.json'))
    report.populate_report()

    d = report.document

    # Don't find the %%% sings, but do find the message contents
    assert len(d.element.xpath("//w:t[contains(text(), '%')]")) == 0
    assert len(d.element.xpath("//w:t[contains(text(), 'hi 1')]")) == 1


# Don't find the %%% sings, but do find the message contents