Skip to content
Snippets Groups Projects

Fixes problem with crop-tgrid

Merged Fraser William Goldsworth requested to merge m301014/pyicon:fix-croptgrid into master
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
import subprocess
import pytest
import pyicon as pyic
from pathlib import Path
def test_docs_build(tmpdir_factory):
base_dir = Path(pyic.__file__).parent / ".."
doc_dir = base_dir.resolve() / "doc"
build_dir = tmpdir_factory.mktemp("_build")
# Run the sphinx-build command
try:
subprocess.check_call(
["sphinx-build", "-b", "html", doc_dir, build_dir])
except subprocess.CalledProcessError as e:
pytest.fail(
f"Documentation build failed with exit code {e.returncode}")
Loading