##// END OF EJS Templates
Renamed remaining `figures` strings
Jonathan Frederic -
Show More
@@ -45,16 +45,16 b' class TestExporter(ExportersTestsBase):'
45 45 assert len(output) > 0
46 46
47 47
48 def test_extract_figures(self):
48 def test_extract_outputs(self):
49 49 """
50 If the ExtractOutputTransformer is enabled, are figures extracted?
50 If the ExtractOutputTransformer is enabled, are outputs extracted?
51 51 """
52 52 config = Config({'ExtractOutputTransformer': {'enabled': True}})
53 53 exporter = self._make_exporter(config=config)
54 54 (output, resources) = exporter.from_filename(self._get_notebook())
55 55 assert resources is not None
56 assert 'figures' in resources
57 assert len(resources['figures']) > 0
56 assert 'outputs' in resources
57 assert len(resources['outputs']) > 0
58 58
59 59
60 60 def test_transformer_class(self):
@@ -46,10 +46,10 b' class ConvertFiguresTransformer(Transformer):'
46 46 See base.py
47 47 """
48 48
49 #Loop through all of the datatypes of the outputs in the cell.
49 # Loop through all of the datatypes of the outputs in the cell.
50 50 for index, cell_out in enumerate(cell.get('outputs', [])):
51 51 for data_type, data in cell_out.items():
52 # this must run *before* extract figures,
52 # this must run *before* extract outputs,
53 53 # so figure_name and filename do not exist
54 54 self._convert_figure(cell_out, resources, data_type, data)
55 55 return cell, resources
General Comments 0
You need to be logged in to leave comments. Login now