Add 'status' to SWF *Type string representation
This commit is contained in:
parent
8b02c0b85e
commit
036ab194ba
@ -75,7 +75,7 @@ class GenericType(object):
|
|||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
cls = self.__class__.__name__
|
cls = self.__class__.__name__
|
||||||
attrs = "name: %(name)s, version: %(version)s" % self.__dict__
|
attrs = "name: %(name)s, version: %(version)s, status: %(status)s" % self.__dict__
|
||||||
return "{}({})".format(cls, attrs)
|
return "{}({})".format(cls, attrs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -47,4 +47,4 @@ def test_full_dict_representation():
|
|||||||
|
|
||||||
def test_string_representation():
|
def test_string_representation():
|
||||||
_type = FooType("test-foo", "v1.0")
|
_type = FooType("test-foo", "v1.0")
|
||||||
str(_type).should.equal("FooType(name: test-foo, version: v1.0)")
|
str(_type).should.equal("FooType(name: test-foo, version: v1.0, status: REGISTERED)")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user