commit | a6a25c4e2fff3789fea59f3de30f1543ea4e69c1 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Tue Mar 13 16:04:22 2018 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Tue Mar 13 16:04:22 2018 -0700 |
tree | f25e23b8fd0255b467e41252a9ea5398dd297d1b | |
parent | f0c3826546cafc82afbe98e06376f253a10cb97e [diff] [blame] |
[CORD-2826] Adding support for get_model_class in mock_classes.xproto Change-Id: I0724b2e5c8baad201f38681f556c4e07fdf77912
diff --git a/lib/xos-genx/xosgenx/targets/mock_classes.xtarget b/lib/xos-genx/xosgenx/targets/mock_classes.xtarget index 00db7e5..b59a7e5 100644 --- a/lib/xos-genx/xosgenx/targets/mock_classes.xtarget +++ b/lib/xos-genx/xosgenx/targets/mock_classes.xtarget
@@ -138,6 +138,9 @@ for store in AllMockObjectStores: store.items = [] + def get_model_class(self, classname): + return globals()[classname] + model_accessor = ModelAccessor() class ObjectSet(object):