Skip to content

Commit

Permalink
Ruff auto-formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fjclark committed Sep 16, 2024
1 parent cb0d532 commit 2e3e129
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions a3fe/tests/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def test_write_truncated_sim_datafile_end_and_start():
assert lines[13].split()[0] == "5000"
assert lines[-2].split()[0] == "9000"


def test_process_slurm_file_base():
"""
Test that the SLURM file base name is correctly extracted from a SLURM file.
Expand All @@ -123,5 +124,7 @@ def test_process_slurm_file_base():
assert slurm_file_base == "a3fe/data/example_run_dir/input/somd-array-gpu-"

# Test alternative formatting
slurm_file_base = get_slurm_file_base("a3fe/data/alternative_input/alternative_run_somd.sh")
assert slurm_file_base == "a3fe/data/alternative_input/somd-array-gpu-"
slurm_file_base = get_slurm_file_base(
"a3fe/data/alternative_input/alternative_run_somd.sh"
)
assert slurm_file_base == "a3fe/data/alternative_input/somd-array-gpu-"

0 comments on commit 2e3e129

Please sign in to comment.