MCPcopy Create free account
hub / github.com/conda/constructor / test_write_images

Function test_write_images

tests/test_imaging.py:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 reason="imaging only available on Windows and MacOS",
14)
15def test_write_images():
16 tmp_dir = tempfile.mkdtemp()
17
18 info = {"name": "test", "version": "0.3.1"}
19 for key in ("welcome_image_text", "header_image_text"):
20 if key not in info:
21 info[key] = info["name"]
22
23 write_images(info, tmp_dir)
24
25 shutil.rmtree(tmp_dir)
26
27
28if __name__ == "__main__":

Callers 1

test_imaging.pyFile · 0.85

Calls 1

write_imagesFunction · 0.90

Tested by

no test coverage detected