diff options
author | Michael Hwang <mhwang@research.att.com> | 2017-09-22 10:05:05 -0400 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2017-09-22 13:04:33 -0400 |
commit | af7747ca4a7d849dbef9f86b31216e388334f876 (patch) | |
tree | fecec814a0cf8e03689aa399c322eb499d6437c1 /dcae-cli/dcae_cli/util/tests/test_profiles.py | |
parent | f9b3a97cc69baa4be00c9d054ce7b6cd1cfeee53 (diff) |
Get tox working
* Use public onap dependencies
* Make to work with tox
* Fix unit tests
Change-Id: I08ed9fa33003f4ec017818f61acf83b9f29ec9a3
Issue-Id: DCAEGEN2-60
Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'dcae-cli/dcae_cli/util/tests/test_profiles.py')
-rw-r--r-- | dcae-cli/dcae_cli/util/tests/test_profiles.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dcae-cli/dcae_cli/util/tests/test_profiles.py b/dcae-cli/dcae_cli/util/tests/test_profiles.py index b15d9b5..969697a 100644 --- a/dcae-cli/dcae_cli/util/tests/test_profiles.py +++ b/dcae-cli/dcae_cli/util/tests/test_profiles.py @@ -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() |