GithubObject.edit => restore testEditAuthenticatedUser

This commit is contained in:
Vincent Jacques
2012-05-03 22:29:24 +01:00
parent 68329733db
commit 2f536fd95d
21 changed files with 590 additions and 124 deletions
+11 -1
View File
@@ -48,7 +48,17 @@ class Label( object ):
pass
def edit( self, name, color ):
pass
post_parameters = {
"name": name,
"color": color,
}
result = self.__github._dataRequest(
"PATCH",
"https://api.github.com/user",
None,
post_parameters
)
self.__useAttributes( result )
def __useAttributes( self, attributes ):
if "color" in attributes: