fix python3 compatibility issue for using json/base64

This commit is contained in:
Enix Yu
2016-01-16 16:11:34 +08:00
parent 9c6f881220
commit 5b7f0bb6a8
2 changed files with 19 additions and 10 deletions
+2 -2
View File
@@ -414,7 +414,7 @@ class Repository(Framework.TestCase):
def testCreateFile(self):
newFile = '/doc/testCreateUpdateDeleteFile.md'
content = bytes('Hello world'.encode('utf-8'))
content = 'Hello world'
self.repo.create_file(
path=newFile, message='Create file for testCreateFile', content=content,
branch="master", committer=github.InputGitAuthor("Enix Yu", "enix223@163.com", "2016-01-15T16:13:30+12:00"),
@@ -422,7 +422,7 @@ class Repository(Framework.TestCase):
def testUpdateFile(self):
updateFile = '/doc/testCreateUpdateDeleteFile.md'
content = bytes('Hello World'.encode('utf-8'))
content = 'Hello World'
sha = self.repo.get_contents(updateFile).sha
self.repo.update_file(
path=updateFile, message='Update file for testUpdateFile', content=content, sha=sha,