Coverage for tests/test_plugin.py: 100.00%
8 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-05 21:04 +0200
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-05 21:04 +0200
1"""Tests for the plugin."""
3import os
5import pytest
6from duty.callables import mkdocs
9def test_plugin() -> None:
10 """Run the plugin."""
11 os.environ["MANPAGE"] = "true"
12 with pytest.raises(expected_exception=SystemExit) as exc:
13 mkdocs.build()()
14 assert exc.value.code == 0