Skip to content

Commit 412ee7f

Browse files
Telles Nobregastevemar
authored andcommitted
Adding api_version to FakeApp
In order to use app.api_version['<some_service>'] we need to have the api_version on FakeApp otherwise the test will fail. Patch that will benefit from this: https://review.openstack.org/#/c/572536/ Change-Id: Ibb3c548daf2a62b6c4aefb5e257372dd5c56521e
1 parent 08dbd15 commit 412ee7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openstackclient/tests/unit/fakes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class FakeApp(object):
106106
def __init__(self, _stdout, _log):
107107
self.stdout = _stdout
108108
self.client_manager = None
109+
self.api_version = {}
109110
self.stdin = sys.stdin
110111
self.stdout = _stdout or sys.stdout
111112
self.stderr = sys.stderr

0 commit comments

Comments
 (0)