Test: Fix UnboundLocalError

This commit is contained in:
Kyle Hornberg
2018-10-04 11:54:41 -05:00
parent 9b570b9a0e
commit 75a6a14bc7
+1 -1
View File
@@ -13,9 +13,9 @@ class TestClientMethods(object):
for client in Octokit().__dict__:
try:
cls = getattr(Octokit(), client).__dict__
assert all(method.islower() for method in cls)
except AttributeError:
pass # ignore non-class attributes
assert all(method.islower() for method in cls)
def test_method_has_doc_string(self):
assert Octokit(