Publish without confirming saving outside Jupyter Lab#
from nbproject import header, publish
header()
id | mNFd52YOodtk |
version | draft |
time_init | 2022-07-11 12:16 |
time_run | 2022-10-24 12:35 |
pypackage | nbproject==0.7.0 pytest==7.1.3 |
import pytest
The following will only throw an error on CI, because CI does not mimic the Jupyter Lab environment.
with pytest.raises(RuntimeError):
publish(pretend_no_test_env=True)