Skip to content

Commit 5a88c66

Browse files
committed
Fix unit tests
1 parent c386174 commit 5a88c66

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

juju/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def add_credential(self, name=None, credential=None, cloud=None,
244244
log.debug('Uploading credential %s', name)
245245
cloud_facade = client.CloudFacade.from_connection(self.connection())
246246
tagged_credentials = [
247-
client.UpdateCloudCredential(
247+
client.TaggedCredential(
248248
tag=tag.credential(cloud, tag.untag('user-', owner), name),
249249
credential=credential,
250250
)]

tests/unit/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_basics():
1616

1717
def test_from_connection():
1818
connection = mock.Mock()
19-
connection.facades = {"Action": 2}
19+
connection.facades = {"Action": 7}
2020
connection.info = {"server-version": '3.0'}
2121
action_facade = client.ActionFacade.from_connection(connection)
2222
assert action_facade

0 commit comments

Comments
 (0)