From 3ef076ca72998755605c3108e72070fdf318049c Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Sun, 11 Feb 2024 14:18:35 +0100 Subject: [PATCH] Fix test --- tests/test_inventory.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_inventory.py b/tests/test_inventory.py index 683ce6d..72f6428 100644 --- a/tests/test_inventory.py +++ b/tests/test_inventory.py @@ -67,7 +67,7 @@ def test_fuel_blend(): "share": [0.07, 0.07, 0.07, 0.07, 0.07, 0.07], }, }, - "cng": { + "methane": { "primary": { "type": "methane - biomethane - sewage sludge", "share": [1, 1, 1, 1, 1, 1], @@ -88,8 +88,7 @@ def test_fuel_blend(): tm.fuel_blend["diesel"]["secondary"]["share"], [0.07, 0.07, 0.07, 0.07, 0.07, 0.07], ) - assert np.allclose(tm.fuel_blend["cng"]["primary"]["share"], [1, 1, 1, 1, 1, 1]) - # assert np.sum(ic.fuel_blends["cng"]["secondary"]["share"]) == 0 + assert np.allclose(tm.fuel_blend["methane"]["primary"]["share"], [1, 1, 1, 1, 1, 1]) ic.calculate_impacts() @@ -126,7 +125,7 @@ def test_fuel_blend(): "primary": {"type": fuels[0], "share": [1, 1, 1, 1, 1, 1]}, }, "hydrogen": {"primary": {"type": fuels[1], "share": [1, 1, 1, 1, 1, 1]}}, - "cng": {"primary": {"type": fuels[2], "share": [1, 1, 1, 1, 1, 1]}}, + "methane": {"primary": {"type": fuels[2], "share": [1, 1, 1, 1, 1, 1]}}, } tm = TruckModel(array, cycle="Long haul", country="CH", fuel_blend=fb)