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 daa6ebc commit 2e19b8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
7 changes: 4 additions & 3 deletions tests/test_OpenFOAMCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from git.repo import Repo
from pathlib import Path


def create_logs(path: Path):
log_names = [
"blockMesh_2023-11-30_22:13:31.log",
Expand Down Expand Up @@ -69,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: 7 additions & 5 deletions tests/test_create_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ 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 2e19b8d

Please sign in to comment.