Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #196 #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions test/test_packagemanager.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from __future__ import absolute_import
from __future__ import print_function

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()
Expand All @@ -28,7 +33,7 @@

def test_load_pm():
pkgman = PackageManager()
pkgman.init()
pkgman.load_directory(oa_dir())

simpleop = pkgman["openalea.flow control"]
assert simpleop
Expand All @@ -43,9 +48,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():
Expand Down
Loading