Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	tests/test_electricity.py
  • Loading branch information
romainsacchi committed Feb 7, 2024
2 parents 177ae9e + 7f9225d commit dc954cf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -78,6 +78,12 @@ 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"]
Expand Down

0 comments on commit dc954cf

Please sign in to comment.