From 9d5646696d8bd384ed1431d3a4871fb2d6450927 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 23 May 2026 22:26:16 +0000 Subject: Add cli test for missing --- nbs/cli.ipynb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nbs/cli.ipynb b/nbs/cli.ipynb index 59f794e..c6a8df9 100644 --- a/nbs/cli.ipynb +++ b/nbs/cli.ipynb @@ -236,6 +236,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, -- cgit v1.2.3