Skip to content

Commit

Permalink
Fixed several unused variable issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
djgroen committed Dec 4, 2023
1 parent 80067d7 commit 134dd30
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_actions_execute_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@

def test_create_run_directory(tmpdir):
action = CreateRunDirectory(tmpdir)
previous = {'campaign_dir': 'test', 'run_id': 123456789, 'run_info': {'id': 123456789}}
previous = action.start(previous)
action.start({'campaign_dir': 'test', 'run_id': 123456789, 'run_info': {'id': 123456789}})
assert (os.path.exists(
os.path.join(
tmpdir, 'test', 'runs', 'runs_100000000-200000000', 'runs_123000000-124000000',
'runs_123450000-123460000', 'runs_123456700-123456800', 'run_123456789')))
previous = {'campaign_dir': 'test', 'run_id': 0, 'run_info': {'id': 0}}
previous = action.start(previous)

action.start({'campaign_dir': 'test', 'run_id': 0, 'run_info': {'id': 0}})
assert (os.path.exists(
os.path.join(
tmpdir, 'test', 'runs', 'runs_0-100000000', 'runs_0-1000000', 'runs_0-10000',
'runs_0-100')))
previous = {'campaign_dir': 'test', 'run_id': 100, 'run_info': {'id': 100}}

action = CreateRunDirectory(tmpdir, flatten=True)
previous = action.start(previous)
action.start({'campaign_dir': 'test', 'run_id': 100, 'run_info': {'id': 100}})
assert (os.path.exists(os.path.join(tmpdir, 'test', 'runs', 'run_100')))

0 comments on commit 134dd30

Please sign in to comment.