We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce16412 commit b363299Copy full SHA for b363299
1 file changed
tests/integration/test_api.py
@@ -15,3 +15,15 @@ def test_search_repositories(self):
15
repos = self.gh.search_repositories('github3 language:python')
16
assert isinstance(next(repos),
17
github3.search.RepositorySearchResult)
18
+
19
+ def test_search_code(self):
20
+ """Test the ability to use the code search endpoint"""
21
+ cassette_name = self.cassette_name('search_code',
22
+ cls='GitHub')
23
+ with self.recorder.use_cassette(cassette_name):
24
+ repos = self.gh.search_code(
25
+ 'HTTPAdapter in:file language:python'
26
+ ' repo:kennethreitz/requests'
27
+ )
28
+ assert isinstance(next(repos),
29
+ github3.search.CodeSearchResult)
0 commit comments