Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brentpicasso committed Oct 21, 2024
1 parent f8802d3 commit 4243b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def test_postarch_build(self, mock_install_stl_lib):
def test_recipe_download_headers(self):
"""Download header can be created on the fly using environment variables."""
recipe = DummyRecipe()
with mock.patch.dict(os.environ, '[["header1","foo"],["header2", "bar"]]'):
recipe.name = "dummy"
with mock.patch.dict(os.environ, {'DOWNLOAD_HEADERS_dummy': '[["header1","foo"],["header2", "bar"]]'}):
download_headers = recipe.download_headers
assert download_headers == [["header1", "foo"], ["header2", "bar"]]

0 comments on commit 4243b55

Please sign in to comment.