aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nbs/cli.ipynb13
1 files changed, 13 insertions, 0 deletions
diff --git a/nbs/cli.ipynb b/nbs/cli.ipynb
index 59f794e..c6a8df9 100644
--- a/nbs/cli.ipynb
+++ b/nbs/cli.ipynb
@@ -239,6 +239,19 @@
{
"cell_type": "code",
"execution_count": null,
+ "id": "0e96c23d",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "err_msg = 'No notebooks specified and nb_dir not set in config'\n",
+ "for subcmd in ('export', 'clean'):\n",
+ " with tmp_nb(CLEAN_VALID_EXPORTED_CELLS), test.raises(exc=SystemExit, contains=err_msg):\n",
+ " run_cli(subcmd)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
"id": "fc918ca3",
"metadata": {},
"outputs": [],