Skip to content

Instantly share code, notes, and snippets.

@jdfreder
Last active December 19, 2015 17:08
Show Gist options
  • Save jdfreder/5988456 to your computer and use it in GitHub Desktop.
Save jdfreder/5988456 to your computer and use it in GitHub Desktop.
Writer tests

nbconvert tests

Overview

Suite of automated nose tests for nbconvert

Tasks

App tests

  • Does help show when no notebooks are specified?
  • Does glob work?
  • Does glob into a subdirectory work?
  • Does explicit notebook listing work?
  • Does glob, then explicit notebook listing work?
  • Does explicit notebook listing and then glob work?
  • Does custom config via commandline override directory config?
  • Does the format specified from the commandline override format in default config?
  • Can conversion be done without a default config, only commandline args?

Exporters

  • Try export by name with a name we know doesn't exist, do we get the right error?
  • export_by_name a filename
  • export_by_name a notebook node
  • export_by_name a filestream
  • export using an exporter instance
  • Try to export without resources, does it still work?
  • Try to export without an exporter, does it through the right error?
  • Try to construct an exporter
  • Try to construct a basichtml exporter
  • Try to construct a fullhtml exporter
  • Try to construct a latex exporter
  • Try to construct a markdown exporter
  • Try to construct a python exporter
  • Try to construct a reveal exporter
  • Try to construct a rst exporter
  • Try to construct a sphinx_howto exporter
  • Try to construct a sphinx_manual exporter
  • Export using an exporter
  • Export using a basichtml exporter
  • Export using a fullhtml exporter
  • Export using a latex exporter
  • Export using a markdown exporter
  • Export using a python exporter
  • Export using a reveal exporter
  • Export using a rst exporter
  • Export using a sphinx_howto exporter
  • Export using a sphinx_manual exporter
  • Try disabling the extract figure transformer, verify no figures are extracted
  • Try adding a custom transformer via the extra transformers list
  • Try adding a custom filter via traitlet
  • Try adding a custom transformer via the public method
  • Try adding a custom filter via the public method

Filters

  • DataTypeFilter

ansi

  • remove_ansi
  • ansi2html
  • single_ansi2latex
  • ansi2latex

highlight

  • highlight
  • highlight2latex

latex

  • escape_latex
  • rm_math_space

markdown

  • markdown2html
  • markdown2latex
  • markdown2rst

strings

  • wrap
  • strip_dollars
  • rm_fake
  • python_comment
  • get_lines

Templates

  • Fuzzy compare an exported notebook using the basichtml template
  • Fuzzy compare an exported notebook using the fullhtml template
  • Fuzzy compare an exported notebook using the latex template
  • Fuzzy compare an exported notebook using the markdown template
  • Fuzzy compare an exported notebook using the python template
  • Fuzzy compare an exported notebook using the reveal template
  • Fuzzy compare an exported notebook using the rst template
  • Fuzzy compare an exported notebook using the sphinx_howto template
  • Fuzzy compare an exported notebook using the sphinx_manual template
  • Strict compare the results of a custom template

Transformers

  • coalescestreams
  • svg2pdf
  • csshtmlheader
  • extractfigure
  • latex
  • revealhelp
  • sphinx

Writers

  • files
  • stdout
  • debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment