Skip to content

Commit 94a02ea

Browse files
committed
fix unit test
1 parent 1324d04 commit 94a02ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.generator/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ def test_build_bazel_target_success(mocker, caplog):
8686
caplog.set_level(logging.INFO)
8787
mocker.patch("cli.subprocess.run", return_value=MagicMock(returncode=0))
8888
_build_bazel_target("mock/bazel:rule")
89-
assert "Bazel build for mock/bazel:rule completed successfully" in caplog.text
89+
assert "Bazel build for mock/bazel:rule rule completed successfully" in caplog.text
9090

9191

9292
def test_build_bazel_target_fails(mocker, caplog):
9393
"""
94-
Tests that an exception is raised if the subprocess command fails.
94+
Tests that ValueError is raised if the subprocess command fails.
9595
"""
9696
caplog.set_level(logging.ERROR)
9797
mocker.patch(

0 commit comments

Comments
 (0)