from juju.client import client
async with base.CleanModel() as model:
- ann_facade = client.AnnotationsFacade()
- ann_facade.connect(model.connection)
+ ann_facade = client.AnnotationsFacade.from_connection(model.connection)
ann = client.EntityAnnotations(
entity='badtag',
from juju.client import client
async with base.CleanModel() as model:
- app_facade = client.ApplicationFacade()
- app_facade.connect(model.connection)
+ app_facade = client.ApplicationFacade.from_connection(model.connection)
with pytest.raises(JujuError):
return await app_facade.GetCharmURL('foo')