From f40658929b0d1f0c90dd21ce1b01c1ac6500fb5d Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Sun, 15 Oct 2023 18:18:35 +0200 Subject: [PATCH] Fix export function --- tests/test_reproducing_db.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_reproducing_db.py b/tests/test_reproducing_db.py index c8a1373..0a5aa82 100644 --- a/tests/test_reproducing_db.py +++ b/tests/test_reproducing_db.py @@ -2,16 +2,15 @@ import bw2data import bw2io import numpy as np -import pytest import yaml from unfold import Fold, Unfold -bw2data.projects.set_current("test") -bw2io.bw2setup() +def test_db_reproduction(): + bw2data.projects.set_current("test") + bw2io.create_default_biosphere3() -def test_db_reproduction(): fp = "./tests/fixture/reference_database.yaml" with open(fp, "r") as stream: db = yaml.load(stream, Loader=yaml.FullLoader)