def test_bundle_declarative_widgets(self): '''Should write declarative widgets to output.''' converter.bundle_declarative_widgets(self.tmp, 'test/resources/env.ipynb') self.assertTrue(exists(pjoin(self.tmp, 'static/urth_widgets')), 'urth_widgets should exist') self.assertTrue(exists(pjoin(self.tmp, 'static/urth_components')), 'urth_components should exist')
def test_skip_declarative_widgets(self): '''Should not write declarative widgets to output.''' # Testing to make sure we do not add bower components if we do not need to converter.bundle_declarative_widgets( self.tmp, 'test/resources/no_imports.ipynb') self.assertFalse(exists(pjoin(self.tmp, 'static/urth_widgets')), 'urth_widgets should not exist') self.assertFalse(exists(pjoin(self.tmp, 'static/urth_components')), 'urth_components should not exist')
def test_skip_declarative_widgets(self): '''Should not write declarative widgets to output.''' # Testing to make sure we do not add bower components if we do not need to converter.bundle_declarative_widgets(self.tmp, 'test/resources/no_imports.ipynb') self.assertFalse(exists(pjoin(self.tmp, 'static/urth_widgets')), 'urth_widgets should not exist') self.assertFalse(exists(pjoin(self.tmp, 'static/urth_components')), 'urth_components should not exist')