projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01ab1ab
)
Fixed up tests.
author
Pete Vander Giessen
<petevg@gmail.com>
Tue, 7 Mar 2017 19:34:25 +0000
(13:34 -0600)
committer
Pete Vander Giessen
<petevg@gmail.com>
Tue, 7 Mar 2017 20:49:33 +0000
(14:49 -0600)
tests/integration/test_errors.py
patch
|
blob
|
history
diff --git
a/tests/integration/test_errors.py
b/tests/integration/test_errors.py
index
4a95a27
..
d173bce
100644
(file)
--- a/
tests/integration/test_errors.py
+++ b/
tests/integration/test_errors.py
@@
-40,7
+40,6
@@
async def test_juju_error_in_results_list(event_loop):
from juju.client import client
async with base.CleanModel() as model:
from juju.client import client
async with base.CleanModel() as model:
- # Replicate
ann_facade = client.AnnotationsFacade()
ann_facade.connect(model.connection)
ann_facade = client.AnnotationsFacade()
ann_facade.connect(model.connection)
@@
-59,7
+58,13
@@
async def test_juju_error_in_result(event_loop):
Verify that we raise a JujuError when appropraite when we are
looking at a single result coming back.
Verify that we raise a JujuError when appropraite when we are
looking at a single result coming back.
- # TODO: write this!
-
'''
'''
- pass
+ from juju.errors import JujuError
+ from juju.client import client
+
+ async with base.CleanModel() as model:
+ app_facade = client.ApplicationFacade()
+ app_facade.connect(model.connection)
+
+ with pytest.raises(JujuError):
+ return await app_facade.GetCharmURL('foo')