Expand Topic class and add test coverage (#1252)

* Expand Topic class and add test coverage

* Add test coverage for Topic properties

* Fix misspelling in comment
This commit is contained in:
Adam Baratz
2019-11-04 15:06:52 +11:00
committed by Steve Kowalik
parent ec3c8d7b3b
commit ac68274200
5 changed files with 178 additions and 6 deletions
+4
View File
@@ -152,6 +152,10 @@ class GithubObject(object):
def _makeIntAttribute(value):
return GithubObject.__makeSimpleAttribute(value, six.integer_types)
@staticmethod
def _makeFloatAttribute(value):
return GithubObject.__makeSimpleAttribute(value, float)
@staticmethod
def _makeBoolAttribute(value):
return GithubObject.__makeSimpleAttribute(value, bool)