Publish without confirming saving outside Jupyter Lab#
from nbproject import header, publish
header()
id | mNFd52YOodtk |
version | 0 |
time_init | 2022-07-11 12:16 |
time_run | 2023-04-16 04:55 |
pypackage | nbproject==0.8.4 pytest==7.3.1 |
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)