Skip to content

Commit

Permalink
Revert "Add test for empty blob creation"
Browse files Browse the repository at this point in the history
This reverts commit 266cb8e.
  • Loading branch information
sigmavirus24 committed Apr 19, 2014
1 parent 266cb8e commit d57a7f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions tests/json/empty_blob

This file was deleted.

15 changes: 0 additions & 15 deletions tests/test_repos.py
Expand Up @@ -161,21 +161,6 @@ def test_create_blob(self):
assert self.repo.create_blob(content, encoding) == sha
self.mock_assertions()

def test_create_empty_blob(self):
self.response('empty_blob', 201)
content = ''
encoding = 'base64'
sha = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'
self.post(self.api + 'git/blobs')
self.conf = {'data': {'content': content, 'encoding': encoding}}

self.assertRaises(github3.GitHubError, self.repo.create_blob,
content, encoding)

self.login()
assert self.repo.create_blob(content, encoding) == sha
self.mock_assertions()

def test_create_comment(self):
self.response('commit_comment', 201)
body = ('Late night commits are never a good idea. I refactored a '
Expand Down

0 comments on commit d57a7f5

Please sign in to comment.