def test_modelinemptydocument_doesnt_validate_document_due_to_env_var( check_integrity, monkeypatch): monkeypatch.setenv("BOKEH_VALIDATE_DOC", "false") p = figure() with embed._ModelInEmptyDocument(p): pass assert not check_integrity.called
def test_modelinemptydocument_validates_document_by_default(check_integrity): p = figure() with embed._ModelInEmptyDocument(p): pass assert check_integrity.called