Skip to content

Commit

Permalink
Merge pull request #1348 from knutfrode/dev
Browse files Browse the repository at this point in the history
Added test to check if latest added oil is available
  • Loading branch information
knutfrode authored Jul 2, 2024
2 parents cdb9b6c + f21fc9f commit 072ba69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/models/openoil/test_oillibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
from opendrift.models.openoil import OpenOil


def test_new_oil():
o = OpenOil(loglevel=50, location='Norway')
oiltypes = o._config['seed:oil_type']['enum']
assert 'HEIDRUN AARE 2023' in oiltypes
assert len(oiltypes) >= 179

def test_oils():
o = OpenOil(loglevel=50, weathering_model='noaa')

Expand Down

0 comments on commit 072ba69

Please sign in to comment.