Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
greole committed Dec 30, 2023
1 parent 2e19b8d commit 5609d0d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions tests/test_OpenFOAMCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def test_OpenFOAMCaseProperties(set_up_of_case):

times = ["1e-06", "2", "3.0"]
for time_folder in times:
check_output([
"cp", "-r", str(of_case.zero_folder), str(of_case.path / time_folder)
])
check_output(
["cp", "-r", str(of_case.zero_folder), str(of_case.path / time_folder)]
)
times = ["0"] + times
times.sort()

Expand Down
12 changes: 5 additions & 7 deletions tests/test_create_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ def open_job(self, statepoint):
return MockJob()

operations = []
test_variation = [
{
"operation": "n/a",
"schema": "n/a",
"values": [{"foo": 1}, {"foo": 2}, {"foo": 3}],
}
]
test_variation = [{
"operation": "n/a",
"schema": "n/a",
"values": [{"foo": 1}, {"foo": 2}, {"foo": 3}],
}]
id_path_mapping = {}
operations = add_variations(
operations, MockProject(), test_variation, MockJob(), id_path_mapping
Expand Down
6 changes: 3 additions & 3 deletions tests/test_md5sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def test_md5sum_calculation(tmpdir, emit_test_config):
job = json.load(job_file)
case = OpenFOAMCase(case_path, job)

md5summed_files_target = set([
f.rsplit("/", 1)[1] for f in case.config_file_tree
])
md5summed_files_target = set(
[f.rsplit("/", 1)[1] for f in case.config_file_tree]
)
md5summed_files_actual = [
key_to_path(file.rsplit("/", 1)[1])
for file in job["cache"].get("md5sum", [])
Expand Down

0 comments on commit 5609d0d

Please sign in to comment.