From fbbe34d03f0cb715a9340be992faf5dc96d0dd24 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Mon, 20 Mar 2023 16:40:40 +0100 Subject: [PATCH] Fix test --- tests/test_config_file.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_config_file.py b/tests/test_config_file.py index d6c1bae..56c4d46 100644 --- a/tests/test_config_file.py +++ b/tests/test_config_file.py @@ -2,11 +2,12 @@ from schema import And, Optional, Or, Schema, Use from datapackage import Package -from premise.ecoinvent_modification import ( - LIST_IMAGE_REGIONS, - LIST_REMIND_REGIONS, - SUPPORTED_EI_VERSIONS, -) +from premise.utils import load_constants + +config = load_constants() +LIST_REMIND_REGIONS = config["LIST_REMIND_REGIONS"] +LIST_IMAGE_REGIONS = config["LIST_IMAGE_REGIONS"] +SUPPORTED_EI_VERSIONS = config["SUPPORTED_EI_VERSIONS"] FILEPATH_DATAPACKAGE_SCHEMA = "./datapackage.json"