diff --git a/src/test/python/domain/test_image.py b/src/test/python/domain/test_image.py index e26c98d..45ca8ad 100644 --- a/src/test/python/domain/test_image.py +++ b/src/test/python/domain/test_image.py @@ -1,4 +1,5 @@ from pybuilder.core import Project +from subprocess import Popen, PIPE, run from pathlib import Path from src.main.python.ddadevops.domain import ( BuildType, @@ -12,3 +13,12 @@ def test_devops_build_commons_path(): assert image is not None assert image.is_valid() assert "docker/" == image.build_commons_path() + +def test_docker_fails_with_error_msg(): + output = run( + f"docker build asdfsdf", + shell=True, + check=True, + stderr=PIPE, + text=True + ).stderr