From 177ae9e7d4903e412357b4e768b2be35de79c663 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Wed, 7 Feb 2024 20:43:00 +0100 Subject: [PATCH] Fix test --- tests/test_electricity.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/test_electricity.py b/tests/test_electricity.py index 99db96cb..066e1853 100644 --- a/tests/test_electricity.py +++ b/tests/test_electricity.py @@ -44,8 +44,8 @@ def get_db(): return dummy_db, version -# This won't work with PRs because PRs from outside contributors don't have -# access to secrets (for good reason). +# This won't work with PRs because PRs from outside contributors +# don't have access to secrets (for good reason). if "IAM_FILES_KEY" in os.environ: key = os.environ["IAM_FILES_KEY"] else: @@ -78,12 +78,6 @@ def get_db(): ) -@pytest.mark.skipif(not key, reason="No access to decryption key") -def test_losses(): - assert len(el.network_loss) == 13 - assert np.isclose(el.network_loss["CAZ"]["high"]["transf_loss"], 0.0223586, rtol=1e-2) - - @pytest.mark.skipif(not key, reason="No access to decryption key") def test_powerplant_map(): s = el.powerplant_map["Biomass IGCC CCS"]