Created
September 7, 2012 19:46
-
-
Save vishvananda/3669055 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/nova/tests/integrated/test_api_samples.py b/nova/tests/integrated/test_api_samples.py | |
index 6f103f6..3f2f908 100644 | |
--- a/nova/tests/integrated/test_api_samples.py | |
+++ b/nova/tests/integrated/test_api_samples.py | |
@@ -22,6 +22,7 @@ from nova import flags | |
from nova.openstack.common import importutils | |
from nova.openstack.common import jsonutils | |
from nova.openstack.common.log import logging | |
+from nova.openstack.common import rpc | |
from nova import test | |
from nova.tests import fake_network | |
from nova.tests.image import fake | |
@@ -49,6 +50,7 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase): | |
self.flags(osapi_compute_extension=ext) | |
super(ApiSampleTestBase, self).setUp() | |
fake_network.stub_compute_with_ips(self.stubs) | |
+ self.stubs.Set(rpc, 'cast', rpc.call) | |
self.generate_samples = os.getenv('GENERATE_SAMPLES') is not None | |
def _pretty_data(self, data): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment