Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoDiepers committed Sep 18, 2024
1 parent 25e484a commit 9e8ed23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_starting_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from bw_timex import TimexLCA


@pytest.fixture
@bw2test
def ab_db():
Expand Down Expand Up @@ -91,6 +92,7 @@ def ab_db():
]
)


def test_starting_datetime(ab_db):
method = ("GWP", "example")
database_date_dict = {
Expand All @@ -100,12 +102,12 @@ def test_starting_datetime(ab_db):
}
fu = ("foreground", "A")
tlca = TimexLCA({fu: 1}, method, database_date_dict)

tlca.build_timeline(starting_datetime="2020-01-01")
tlca.lci()
tlca.static_lcia()
assert math.isclose(tlca.static_score, 15, rel_tol=1e-9)

tlca.build_timeline(starting_datetime="2030-01-01")
tlca.lci()
tlca.static_lcia()
Expand Down

0 comments on commit 9e8ed23

Please sign in to comment.