summaryrefslogtreecommitdiff
path: root/glanceclient/tests/unit
diff options
context:
space:
mode:
authorSabari Kumar Murugesan <smurugesan@vmware.com>2016-07-06 18:02:28 -0700
committerSabari Kumar Murugesan <smurugesan@vmware.com>2016-07-06 18:18:42 -0700
commitd7db97c92605a11e312d17cdcdd8ac363bc10924 (patch)
tree8508f2123b449923182b4b5489cfcb45549f2d88 /glanceclient/tests/unit
parentf2c02830f67b443d04ffdf466cf8603745fbb301 (diff)
downloadpython-glanceclient-d7db97c92605a11e312d17cdcdd8ac363bc10924.tar.gz
Fix warlock model creation
Commands like glance md-namespace-show <namespace> fail because of a breaking change in warlock 1.3.0's model creation factory method. Warlock introduced a new kwarg 'resolver' in model_factory method but changed its position with the 'base_class' kwarg. Since we were calling the model_factory method with positional arg, this broke the model creation. Closes-Bug: #1596573 Change-Id: Ic7821f4fdb1b752e0c7ed2bc486299a06bf485c1
Diffstat (limited to 'glanceclient/tests/unit')
-rw-r--r--glanceclient/tests/unit/v2/test_schemas.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/tests/unit/v2/test_schemas.py b/glanceclient/tests/unit/v2/test_schemas.py
index 60442a8..c01d8bd 100644
--- a/glanceclient/tests/unit/v2/test_schemas.py
+++ b/glanceclient/tests/unit/v2/test_schemas.py
@@ -130,7 +130,7 @@ class TestSchemaBasedModel(testtools.TestCase):
def setUp(self):
super(TestSchemaBasedModel, self).setUp()
self.model = warlock.model_factory(_SCHEMA.raw(),
- schemas.SchemaBasedModel)
+ base_class=schemas.SchemaBasedModel)
def test_patch_should_replace_missing_core_properties(self):
obj = {