Skip to content

Commit 702b353

Browse files
committed
Consolidate tests from pull request sigmavirus24#461
1 parent 6c90596 commit 702b353

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tests/integration/test_repos_repo.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,6 @@ def test_directory_contents(self):
199199
for (filename, content) in contents:
200200
assert content.name == filename
201201
assert isinstance(content, github3.repos.contents.Contents)
202-
203-
def test_directory_contents_content(self):
204-
"""Tests the content/decoded attributes of a directory's file content"""
205-
cassette_name = self.cassette_name('directory_contents')
206-
with self.recorder.use_cassette(cassette_name):
207-
repository = self.gh.repository('sigmavirus24', 'github3.py')
208-
contents = repository.directory_contents('github3/search/')
209-
210-
for (filename, content) in contents:
211202
assert content.content is None
212203
assert content.decoded is None
213204

@@ -231,14 +222,6 @@ def test_file_contents(self):
231222
contents = repository.file_contents('github3/repos/repo.py')
232223

233224
assert isinstance(contents, github3.repos.contents.Contents)
234-
235-
def test_file_contents_content(self):
236-
"""Tests that the content and decoded attributes of a file is set"""
237-
cassette_name = self.cassette_name('file_contents')
238-
with self.recorder.use_cassette(cassette_name):
239-
repository = self.gh.repository('sigmavirus24', 'github3.py')
240-
contents = repository.file_contents('github3/repos/repo.py')
241-
242225
assert contents.content is not None
243226
assert contents.decoded is not None
244227

0 commit comments

Comments
 (0)