Skip to content

Commit 7d41d58

Browse files
committed
add unit test
1 parent 5e14116 commit 7d41d58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_recipe.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,10 @@ def test_postarch_build(self, mock_install_stl_lib):
326326
assert recipe.need_stl_shared, True
327327
recipe.postbuild_arch(arch)
328328
mock_install_stl_lib.assert_called_once_with(arch)
329+
330+
def test_recipe_download_headers(self):
331+
"""Download header can be created on the fly using environment variables."""
332+
recipe = DummyRecipe()
333+
with mock.patch.dict(os.environ, '[["header1","foo"],["header2", "bar"]]'):
334+
download_headers = recipe.download_headers
335+
assert download_headers == [["header1","foo"],["header2", "bar"]]

0 commit comments

Comments
 (0)