def test_prepare_metadata(self): """Test we can generate the metadata.""" temp_path = temp_dir() iface = QgisInterface(None) builder = PluginBuilder(iface) builder.plugin_path = temp_path builder._prepare_results_html(self.specification)
def test_prepare_results_html(self): """Test the prepare results helper works.""" temp_path = temp_dir() iface = QgisInterface(None) builder = PluginBuilder(iface) builder.plugin_path = temp_path results_popped, template_module_name = builder._prepare_results_html( self.specification) self.assertIn('You just built a plugin for QGIS!', results_popped) self.assertEquals(template_module_name, 'fake_module')
def test_prepare_results_html(self): """Test the prepare results helper works.""" temp_path = temp_dir() iface = QgisInterface(None) builder = PluginBuilder(iface) builder.shared_dir = self.shared_dir builder.template_dir = self.template_dir builder.plugin_path = temp_path results_popped, template_module_name = builder._prepare_results_html( self.specification) self.assertIn('You just built a plugin for QGIS!', results_popped) self.assertEqual(template_module_name, 'fake_module')