Skip to content

Commit 924ad42

Browse files
committed
print errors.
1 parent 44c788d commit 924ad42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_execute.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def task_run_r_script(produces = Path("out.txt")): ...
5454
r_script = f"""
5555
{parse_config_code}
5656
if(length(config["depends_on"]) <= 0){{
57-
stop("error message to print")
57+
stop("error message to print") # noqa: T201
5858
}}
5959
file_descriptor <- file(config$produces)
6060
writeLines(c("So, so you think you can tell heaven from hell?"), file_descriptor)
@@ -63,7 +63,7 @@ def task_run_r_script(produces = Path("out.txt")): ...
6363
tmp_path.joinpath("script.r").write_text(textwrap.dedent(r_script))
6464

6565
result = runner.invoke(cli, [tmp_path.as_posix()])
66-
66+
print(result.output) # noqa: T201
6767
assert result.exit_code == ExitCode.OK
6868
assert tmp_path.joinpath("out.txt").exists()
6969

@@ -93,7 +93,7 @@ def run_r_script(): ...
9393
tmp_path.joinpath("script.r").write_text(textwrap.dedent(r_script))
9494

9595
result = runner.invoke(cli, [tmp_path.as_posix()])
96-
96+
print(result.output) # noqa: T201
9797
assert result.exit_code == ExitCode.OK
9898
assert tmp_path.joinpath("out.txt").exists()
9999

@@ -160,7 +160,7 @@ def task_run_r_script(): ...
160160
tmp_path.joinpath("script.r").write_text(textwrap.dedent(r_script))
161161

162162
result = runner.invoke(cli, [tmp_path.as_posix()])
163-
163+
print(result.output) # noqa: T201
164164
assert result.exit_code == ExitCode.OK
165165
assert tmp_path.joinpath("out.txt").exists()
166166

0 commit comments

Comments
 (0)