Commit a1139314 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_prototype: Use is_package while importing in test component

parent 5c872d99
...@@ -110,16 +110,20 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -110,16 +110,20 @@ class TestBusinessPackage(ERP5TypeTestCase):
# Export package (not needed) # Export package (not needed)
package.export(path=package_path, local=True) package.export(path=package_path, local=True)
self.tic() self.tic()
import_package = self.portal.portal_templates.download(url='file:'+package_path, id=package.id+'1' , isPackage=True) import_package = self.portal.portal_templates.download(
import pdb; pdb.set_trace() url='file:'+package_path,
id=package.id+'1',
is_package=True)
return import_package return import_package
def _importBusinessPackage(self, package): def _importBusinessPackage(self, package):
self.portal.portal_templates.manage_delObjects(package.getId()) self.portal.portal_templates.manage_delObjects(package.getId())
self.tic() self.tic()
import_package = self.portal.portal_templates.download( \ import_package = self.portal.portal_templates.download(
url='file:'+self.export_dir, url='file:'+self.export_dir,
id=package.getId()) id=package.getId(),
is_package=True)
return import_package return import_package
def _installBusinessPackage(self, package): def _installBusinessPackage(self, package):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment