tests: adapt to changes in declaration of extra modules (follow-up #6654)

This commit is contained in:
Frédéric Péters 2015-03-23 08:40:52 +01:00
parent 1dee6055cb
commit 03d50b9b98
1 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,9 @@ def create_temporary_pub():
publisher.WcsPublisher.APP_DIR = APP_DIR
publisher.WcsPublisher.DATA_DIR = os.path.abspath(
os.path.join(os.path.dirname(wcs.__file__), '..', 'data'))
publisher.WcsPublisher.configure(config,
extra=[os.path.join(os.path.dirname(__file__), '..', 'extra')])
config.add_section('extra')
config.set('extra', 'auquotidien', os.path.join(os.path.dirname(__file__), '..', 'extra'))
publisher.WcsPublisher.configure(config)
pub = publisher.WcsPublisher.create_publisher()
# allow saving the user
pub.app_dir = os.path.join(APP_DIR, 'example.net')