Files
StarPunk/tests/test_markdown_ext.py

10 lines
389 B
Python

def test_tables_get_a_scroll_wrapper():
"""v2.18.2: tables are wrapped so they can fill the column and scroll sideways"""
from starpunk.models import render_markdown
html = render_markdown("| Color | Why |\n|---|---|\n| Black | Removal |\n\nAfter")
assert html.startswith('<div class="table-wrap"><table>') and "</table></div>" in html
assert "<p>After</p>" in html