Skip to content

Commit

Permalink
Mock read_text for acme unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
duzda committed Feb 17, 2025
1 parent 3d6b7e7 commit 3d1d4a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@ def test_acme_enabled(self, mock_run, mock_result, mock_exists):
assert result.kw.get('acme') == 'enabled'

@patch('os.path.exists')
@patch('pathlib.Path.read_text')
@patch('ipapython.ipautil.run')
def test_acme_unknown(self, mock_run, mock_exists):
def test_acme_unknown(self, mock_run, mock_result, mock_exists):
mock_exists.return_value = True
mock_result.return_value = '1'

mock_run.side_effect = [
gen_result(
Expand Down

0 comments on commit 3d1d4a5

Please sign in to comment.