Skip to content

Commit

Permalink
mock the open.write to try to fix github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bgunnar5 committed Sep 13, 2024
1 parent 0c74021 commit 42c121b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/server/test_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ def test_pull_server_image_no_image_path_no_config_path(
# Mock the open function
read_data = "Mocked file content"
mocked_open = mocker.mock_open(read_data=read_data)
mocked_open.write = mocker.Mock()
mocker.patch("builtins.open", mocked_open)

# Call the function
Expand Down

0 comments on commit 42c121b

Please sign in to comment.