Mock Qinling fake client method
* The Qinling client doesn't have an rpm packaging so running the unit test might fail if not installed. Change-Id: Id551b07721fa9c1cdeaa60ae717af82a05e2234a Needed-By: https://review.rdoproject.org/r/#/c/14216/
This commit is contained in:
parent
b8943be736
commit
5a641a9166
|
@ -89,6 +89,11 @@ class GeneratorTest(base.BaseTest):
|
|||
actions.ZunAction, "get_fake_client_method",
|
||||
return_value=lambda x: None))
|
||||
|
||||
# Same for Qinling client
|
||||
self.useFixture(fixtures.MockPatchObject(
|
||||
actions.QinlingAction, "get_fake_client_method",
|
||||
return_value=lambda x: None))
|
||||
|
||||
def test_generator(self):
|
||||
for generator_cls in generator_factory.all_generators():
|
||||
action_classes = generator_cls.create_actions()
|
||||
|
|
Loading…
Reference in New Issue