Skip to content

Commit

Permalink
test: test our own readme (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Jul 7, 2023
1 parent b097a7d commit 9dbb352
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ def test_header_and_malformed_emits_docutils_warning_only():

assert len(warnings.getvalue().splitlines()) == 1
assert "No content rendered from RST source." not in warnings.getvalue()


def test_own_readme():
"""Render the project's README.rst from root."""
readme = Path(__file__).parent.parent / "README.rst"
rendered = render(readme.read_text(encoding="utf-8"))
assert rendered is not None

0 comments on commit 9dbb352

Please sign in to comment.