8000 Re-organize the tests alphabetically · lnielsen/github3.py@97f4dc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97f4dc8

Browse files
committed
Re-organize the tests alphabetically
1 parent 4c7e88e commit 97f4dc8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/integration/test_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ class TestAPI(IntegrationHelper):
77
def get_client(self):
88
return github3.gh
99

10-
def test_search_repositories(self):
11-
"""Test the ability to use the repository search endpoint"""
12-
cassette_name = self.cassette_name('search_repositories',
13-
cls='GitHub')
14-
with self.recorder.use_cassette(cassette_name):
15-
repos = self.gh.search_repositories('github3 language:python')
16-
assert isinstance(next(repos),
17-
github3.search.RepositorySearchResult)
18-
1910
def test_search_code(self):
2011
"""Test the ability to use the code search endpoint"""
2112
cassette_name = self.cassette_name('search_code',
@@ -27,3 +18,12 @@ def test_search_code(self):
2718
)
2819
assert isinstance(next(repos),
2920
github3.search.CodeSearchResult)
21+
22+
def test_search_repositories(self):
23+
"""Test the ability to use the repository search endpoint"""
24+
cassette_name = self.cassette_name('search_repositories',
25+
cls='GitHub')
26+
with self.recorder.use_cassette(cassette_name):
27+
repos = self.gh.search_repositories('github3 language:python')
28+
assert isinstance(next(repos),
29+
github3.search.RepositorySearchResult)

0 commit comments

Comments
 (0)
0