Skip to content

Commit

Permalink
remove TPXO download from imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Aug 5, 2021
1 parent 28c83db commit 604d9bf
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
WW3DATAForcingJSON,
)
from coupledmodeldriver.generate.adcirc.base import ADCIRCJSON

# noinspection PyUnresolvedReferences
from tests import INPUT_DIRECTORY, tpxo_filename
from tests import INPUT_DIRECTORY


def test_update():
Expand Down Expand Up @@ -125,7 +123,7 @@ def test_adcirc():
assert configuration.adcircpy_driver.IM == 511112


def test_tidal(tpxo_filename):
def test_tidal():
configuration = TidalForcingJSON(tidal_source='HAMTIDE', constituents='all')

assert list(configuration.adcircpy_forcing.active_constituents) == [
Expand Down Expand Up @@ -158,41 +156,6 @@ def test_tidal(tpxo_filename):
with pytest.raises((FileNotFoundError, OSError)):
configuration.adcircpy_forcing

configuration['resource'] = tpxo_filename
configuration['constituents'] = 'all'

assert list(configuration.adcircpy_forcing.active_constituents) == [
'Q1',
'O1',
'P1',
'K1',
'N2',
'M2',
'S2',
'K2',
'Mm',
'Mf',
'M4',
'MN4',
'MS4',
'2N2',
'S1',
]

configuration['constituents'] = 'major'

assert list(configuration.adcircpy_forcing.active_constituents) == [
'Q1',
'O1',
'P1',
'K1',
'N2',
'M2',
'S2',
'K2',
]

configuration['tidal_source'] = 'HAMTIDE'
configuration['resource'] = None
configuration['constituents'] = ['q1', 'p1', 'm2']

Expand Down

0 comments on commit 604d9bf

Please sign in to comment.