Skip to content
Snippets Groups Projects
Commit 8c03364e authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add a test to make sure loading functionality works across packages

parent 18148cfe
No related branches found
No related tags found
1 merge request!126Add a test to make sure config loading functionality works across packages
Pipeline #
from .config import *
......@@ -331,3 +331,10 @@ def test_order_inverse():
finally:
if test_dir: shutil.rmtree(test_dir)
def test_relative_import_across_packages():
from bob.extension.config import load
load([ 'resource_config', ], entry_point_group='bob.extension.test_config_load')
load([ 'config_relative', ], entry_point_group='bob.extension.test_config_load')
load([ 'resource_config', 'config_relative', ], entry_point_group='bob.extension.test_config_load')
......@@ -127,6 +127,10 @@ setup(
'bob.db': [
'bio_filelist = bob.bio.base.database.filelist.driver:Interface',
],
# test entry for testing loading of bob.extension.config.load
'bob.extension.test_config_load': [
'config_relative = bob.bio.base.test.dummy.config_relative',
],
},
# Classifiers are important if you plan to distribute this package through
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment