fix governance reqs; allow for sandboxed jupyter notebooks for testing
This commit is contained in:
@@ -92,10 +92,11 @@ def test_rendering_gets_the_environment_and_the_kernel(fake_quarto, tmp_path):
|
||||
|
||||
|
||||
def test_a_failing_notebook_or_missing_quarto_is_a_render_error(fake_quarto, tmp_path, monkeypatch):
|
||||
"""Pins down: a cell that raises, and Quarto not being installed, end as `RenderError` with the reason. Fails if a
|
||||
broken report is logged or the error is a bare `FileNotFoundError`."""
|
||||
"""Pins down: a cell that raises, and Quarto not being installed when it's the renderer asked for, end as
|
||||
`RenderError` with the reason. Fails if a broken report is logged or the error is a bare `FileNotFoundError`."""
|
||||
with pytest.raises(RenderError, match="a cell raised"):
|
||||
render_notebook(_notebook("fail"), "01_eda", tmp_path / "page.html")
|
||||
monkeypatch.setenv("NOTEBOOK_RENDERER", "quarto")
|
||||
monkeypatch.setenv("QUARTO_BIN", "")
|
||||
monkeypatch.setenv("PATH", str(tmp_path / "empty"))
|
||||
with pytest.raises(RenderError, match="isn't installed"):
|
||||
|
||||
Reference in New Issue
Block a user