def test_doesnt_validate_document_due_to_env_var(self, check_integrity, monkeypatch, test_plot):
     monkeypatch.setenv("BOKEH_VALIDATE_DOC", "false")
     with ben._ModelInEmptyDocument(test_plot):
         pass
     assert not check_integrity.called
Beispiel #2
0
 def test_doesnt_validate_document_due_to_env_var(self, check_integrity,
                                                  monkeypatch, test_plot):
     monkeypatch.setenv("BOKEH_VALIDATE_DOC", "false")
     with ben._ModelInEmptyDocument(test_plot):
         pass
     assert not check_integrity.called
 def test_validates_document_by_default(self, check_integrity, test_plot):
     with ben._ModelInEmptyDocument(test_plot):
         pass
     assert check_integrity.called
Beispiel #4
0
 def test_validates_document_by_default(self, check_integrity, test_plot):
     with ben._ModelInEmptyDocument(test_plot):
         pass
     assert check_integrity.called