From 87bac75c7034534b70e3bd91d7b8ec5ad69cb78e Mon Sep 17 00:00:00 2001 From: pradal Date: Tue, 20 Feb 2018 11:39:05 +0100 Subject: [PATCH] Fix issue #196 --- test/test_packagemanager.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/test_packagemanager.py b/test/test_packagemanager.py index 18481657..06906fc3 100644 --- a/test/test_packagemanager.py +++ b/test/test_packagemanager.py @@ -1,7 +1,10 @@ +import openalea.core from openalea.core.pkgmanager import PackageManager from .small_tools import test_dir +def oa_dir(): + return openalea.core.__path__[0] # test has been removed # adding OS directories ensure fail of pm.init() @@ -26,7 +29,7 @@ def test_load_pm(): pkgman = PackageManager() - pkgman.init() + pkgman.load_directory(oa_dir()) simpleop = pkgman["openalea.flow control"] assert simpleop @@ -41,9 +44,10 @@ def test_load_pm(): def test_category(): pkgman = PackageManager() + pkgman.load_directory(oa_dir()) - pkgman.init() - pkgman.find_and_register_packages() + #pkgman.init() + #pkgman.find_and_register_packages() # test if factory are dedoubled for cat in pkgman.category.values():