Skip to content

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blimlim committed Aug 19, 2024
1 parent 8f18f24 commit 702c9bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/models/test_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
INPUT_ICE_FNAME = "input_ice.nml"
RESTART_DATE_FNAME = "restart_date.nml"


def setup_module(module):
"""
Put any test-wide setup code in here, e.g. creating test files
Expand Down Expand Up @@ -84,6 +85,7 @@ def access_1year_config():
# Teardown
os.remove(config_path)


@pytest.fixture
def ice_control_directory():
# Make a cice control subdirectory
Expand All @@ -102,7 +104,7 @@ def default_input_ice(ice_control_directory):
# Create base input_ice.nml namelist
ctrl_input_ice_path = ice_control_directory / INPUT_ICE_FNAME

# Default timing values from the input_ice.nml namelist that will be
# Default timing values from the input_ice.nml namelist that will be
# overwritten by the calendar calculations.
default_input_nml = {
"coupling":
Expand Down Expand Up @@ -157,6 +159,7 @@ def restart_dir():
# Teardown
shutil.rmtree(restart_path)


@pytest.fixture
def initial_start_date_file(restart_dir):
# Initital start date for testing calendar cycling
Expand Down
3 changes: 2 additions & 1 deletion test/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

SEC_PER_DAY = 24*60*60


@pytest.mark.parametrize(
"offset, initial_dt, expected",
[
Expand Down Expand Up @@ -251,7 +252,7 @@ def test_runtime_from_date(
"""
Test that the number of seconds calculated for run lengths is correct.
"""
runtime = runtime_from_date(start_date,
runtime = runtime_from_date(start_date,
years,
months,
days,
Expand Down

0 comments on commit 702c9bb

Please sign in to comment.