Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster committed Jan 24, 2024
1 parent 52549e0 commit abe5636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/ec2_udev_rules/test_manage_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def test_attach_volume(mocker, volume_response, state, message, ec2_mock, capsys
mocker.patch("time.sleep", return_value=None)
mocker.patch("os.popen", mocker.mock_open(read_data="sdf"))
mocker.patch("subprocess.check_output", return_value="xvda")
mocker.patch("os.makedirs")
mocker.patch("builtins.open", mocker.mock_open())

volume_response["State"] = state
ec2_mock.attach_volume.return_value = volume_response
Expand Down

0 comments on commit abe5636

Please sign in to comment.