Set nbproject env using the environment variable#
By setting "NBPRJ_TEST_NBENV"
it is possible to overwrite env
identified by nbproject
.
import os
os.environ["NBPRJ_TEST_NBENV"] = "set_test"
from nbproject.dev import notebook_path
filename, env = notebook_path(return_env=True)
assert env == "set_test"