tests package

Submodules

tests.make_temp module

tests.make_temp.exec_notebook(tmp_path: pathlib.Path) → str[source]

Helper function to create a list of pathlib Path objects.

tests.make_temp.make_files(tmp_path: pathlib.Path) → List[str][source]

Helper function to create a list of pathlib Path objects.

tests.make_temp.make_notebook(tmp_path: pathlib.Path) → str[source]

Helper function to create a list of pathlib Path objects.

tests.test_cli module

tests.test_cli.test_nbconv_cli(tmp_path: pathlib.Path) → None[source]

Convert tempfiles with each exporter in exporters.

tests.test_cli.test_nbdeck_cli(tmp_path: pathlib.Path)[source]

Print a notebook that can be viewed as or converted into slides.

tests.test_cli.test_nbdeck_cli_out(tmp_path: pathlib.Path)[source]

Set up a Jupyter notebook to be viewed as or converted into slides.

tests.test_cli.test_nbexec_cli(tmp_path: pathlib.Path) → None[source]

Run nbexec to execute a temporary notebook file.

tests.test_cli.test_nbexec_cli_out(tmp_path: pathlib.Path) → None[source]

Run nbexec to execute a temporary notebook with a custom filename.

tests.test_cli.test_nbless_cli(tmp_path: pathlib.Path) → None[source]

Run nbless to create and execute a notebook from temporary files.

tests.test_cli.test_nbless_cli_out(tmp_path: pathlib.Path) → None[source]

Run nbless to create and execute a notebook with a custom filename.

tests.test_cli.test_nbraze_cli(tmp_path: pathlib.Path)[source]

Extract code and markdown files from the cells of an input notebook.

tests.test_cli.test_nbuild_cli(tmp_path: pathlib.Path) → None[source]

Run nbuild to create a notebook file from temporary source files.

tests.test_cli.test_nbuild_cli_out(tmp_path: pathlib.Path) → None[source]

Run nbuild to create a notebook file with a custom filename.

tests.test_nbless module

tests.test_nbless.test_language_info(tmp_path: pathlib.Path)[source]

Infer the code file extension from metadata.language_info.

tests.test_nbless.test_nbconv(exporters, tmp_path: pathlib.Path) → None[source]

Convert a temporary notebook with each exporter in exporters.

tests.test_nbless.test_nbconv_file_contents(tmp_path: pathlib.Path)[source]

Run nbconv with the exporter or out_file argument.

tests.test_nbless.test_nbdeck(tmp_path: pathlib.Path)[source]

Set up a Jupyter notebook to be viewed as or converted into slides.

tests.test_nbless.test_nbexec(tmp_path: pathlib.Path) → None[source]

Run nbexec to execute a temporary notebook file.

tests.test_nbless.test_nbless_one_cell(tmp_path: pathlib.Path) → None[source]

Run nbless to create and execute three notebook files.

tests.test_nbless.test_nbless_three_cells(tmp_path: pathlib.Path) → None[source]

Run nbless to create and execute a 3-cell notebook file.

tests.test_nbless.test_nbraze(tmp_path: pathlib.Path)[source]

Extract code and markdown files from the cells of an input notebook.

tests.test_nbless.test_nbuild_one_cell(tmp_path: pathlib.Path) → None[source]

Run nbuild to create 3 temporary notebook files from 3 tempfiles.

tests.test_nbless.test_nbuild_three_cells(tmp_path: pathlib.Path) → None[source]

Run nbuild to create a temporary notebook file from 3 tempfiles.

tests.test_nbless.test_raises(not_exporters, tmp_path: pathlib.Path) → None[source]

Make sure a ValueError is raised if nbconv gets a bad exporter.

Module contents