Skip to content

Commit

Permalink
[QI2-663] Fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
oschusler committed Oct 29, 2023
1 parent 182b908 commit 7890ce9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/util/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def test_force_file_into_existence_file_does_not_exist(self) -> None:
configuration.ensure_config_file_exists(path, "utf-8")
path.parent.mkdir.assert_called_once_with(parents=True, exist_ok=True)
path.open.assert_called_once_with("w", encoding="utf-8")
open_mock.write.assert_called_once_with("{}")
open_mock.write.assert_called_once_with(
'{"auths": {"https://staging.qi2.quantum-inspire.com": {"user_id": 1}}}'
)

def test_force_file_into_existence_file_exists(self) -> None:
path = MagicMock()
Expand Down

0 comments on commit 7890ce9

Please sign in to comment.