Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions autotest/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def test_build(function_tmpdir, target: str) -> None:
pm.target = target
pm.inplace = True
fc = os.environ.get("FC", "gfortran")
assert (
pymake.build_apps(target, pm, verbose=True, clean=False) == 0
), f"could not compile {target}"
assert pymake.build_apps(target, pm, verbose=True, clean=False) == 0, (
f"could not compile {target}"
)


@pytest.mark.base
Expand All @@ -73,9 +73,9 @@ def test_meson_build(function_tmpdir, target: str) -> None:
cc = os.environ.get("CC", "gcc")
pymake.linker_update_environment(cc=cc, fc=fc)
with set_dir(function_tmpdir):
assert (
pymake.build_apps(target, verbose=True, clean=False, meson=True) == 0
), f"could not compile {target}"
assert pymake.build_apps(target, verbose=True, clean=False, meson=True) == 0, (
f"could not compile {target}"
)


@pytest.mark.base
Expand Down
6 changes: 3 additions & 3 deletions autotest/test_cli_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def run_cli_cmd(cmd: list) -> None:
stderr = stderr.decode()
print(stderr)

assert (
process.returncode == 0
), f"'{' '.join(cmd)}' failed\n\tstatus code {process.returncode}\n"
assert process.returncode == 0, (
f"'{' '.join(cmd)}' failed\n\tstatus code {process.returncode}\n"
)
return


Expand Down
6 changes: 3 additions & 3 deletions autotest/test_gridgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ def test_compile(pm, target):
],
)
def test_gridgen(cmd, workspace, target):
assert run_gridgen(
cmd, workspace / "examples" / "biscayne", target
), f"could not run {cmd}"
assert run_gridgen(cmd, workspace / "examples" / "biscayne", target), (
f"could not run {cmd}"
)
6 changes: 3 additions & 3 deletions autotest/test_mf6_existing_meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def test_build_with_existing_meson(pm, module_tmpdir, workspace, targets):

# make modflow 6 with existing meson.build file
returncode = pymake.meson_build(workspace, fc, cc, appdir=pm.appdir)
assert (
returncode == 0
), "could not build modflow 6 applications using existing meson.build file"
assert returncode == 0, (
"could not build modflow 6 applications using existing meson.build file"
)

# check that all of the executables exist
for executable in targets:
Expand Down
6 changes: 3 additions & 3 deletions autotest/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def run_cli_cmd(cmd: list) -> None:
stderr = stderr.decode()
print(stderr)

assert (
process.returncode == 0
), f"'{' '.join(cmd)}' failed\n\tstatus code {process.returncode}\n"
assert process.returncode == 0, (
f"'{' '.join(cmd)}' failed\n\tstatus code {process.returncode}\n"
)


@pytest.mark.dependency("latest_version")
Expand Down
Loading
Loading