|
7 | 7 | from unittest.mock import patch |
8 | 8 |
|
9 | 9 | # pylint: disable=import-error |
10 | | -from doc_builder.build_commands import get_build_command, get_mount_arg, get_container_cli_tool |
| 10 | +from doc_builder.build_commands import ( |
| 11 | + get_build_command, |
| 12 | + get_mount_arg, |
| 13 | + get_container_cli_tool, |
| 14 | + DEFAULT_IMAGE, |
| 15 | +) |
11 | 16 |
|
12 | 17 | # Allow names that pylint doesn't like, because otherwise I find it hard |
13 | 18 | # to make readable unit test names |
@@ -136,7 +141,7 @@ def test_container(self, mock_get_toplevel_of_doc_builder_parent): |
136 | 141 | "--rm", |
137 | 142 | "-e", |
138 | 143 | "current_version=None", |
139 | | - "ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1", |
| 144 | + DEFAULT_IMAGE, |
140 | 145 | "make", |
141 | 146 | f"SPHINXOPTS=-W --keep-going -c '{os.path.dirname(conf_py_path)}'", |
142 | 147 | "BUILDDIR=/home/user/mounted_home/foorepos/foodocs/versions/main", |
@@ -176,7 +181,7 @@ def test_container_relpath(self, mock_get_toplevel_of_doc_builder_parent): |
176 | 181 | "--rm", |
177 | 182 | "-e", |
178 | 183 | "current_version=None", |
179 | | - "ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1", |
| 184 | + DEFAULT_IMAGE, |
180 | 185 | "make", |
181 | 186 | "SPHINXOPTS=-W --keep-going", |
182 | 187 | "BUILDDIR=/home/user/mounted_home/foorepos/foodocs/versions/main", |
@@ -216,7 +221,7 @@ def test_container_no_clitool_given(self, mock_get_toplevel_of_doc_builder_paren |
216 | 221 | "--rm", |
217 | 222 | "-e", |
218 | 223 | "current_version=None", |
219 | | - "ghcr.io/escomp/ctsm/ctsm-docs:v1.0.1", |
| 224 | + DEFAULT_IMAGE, |
220 | 225 | "make", |
221 | 226 | f"SPHINXOPTS=-W --keep-going -c '{os.path.dirname(conf_py_path)}'", |
222 | 227 | "BUILDDIR=/home/user/mounted_home/foorepos/foodocs/versions/main", |
|
0 commit comments