def test_save_svg_button(self): scatterplot_structure = ScatterplotStructure(self.make_adapter(), save_svg_button=True) assembly = BasicHTMLFromScatterplotStructure(scatterplot_structure) html = assembly.to_html() self.assertEqual(scatterplot_structure.call_build_visualization_in_javascript(), self.get_params({11: 'true'})) self.assertFalse('<!-- INSERT SCRIPT -->' in html)
def make_assembler(self): scatterplot_structure = ScatterplotStructure(self.make_adapter()) return BasicHTMLFromScatterplotStructure(scatterplot_structure)