Get tox working
[dcaegen2/platform/cli.git] / dcae-cli / dcae_cli / util / tests / test_profiles.py
index b15d9b5..969697a 100644 (file)
@@ -150,6 +150,8 @@ def test_reinit_profiles(monkeypatch, tmpdir):
         raise RuntimeError("Mysterious error")
 
     monkeypatch.setattr(util, "fetch_file_from_web", fetch_failure)
+    # Case when user opts out of manually setting up
+    monkeypatch.setattr(click, "confirm", lambda msg: False)
 
     with pytest.raises(profiles.ProfilesInitError):
         profiles.reinit_profiles()