mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Acknowledge some lack of test coverage
This commit is contained in:
+7
-7
@@ -302,15 +302,15 @@ class Github(object):
|
||||
"""
|
||||
assert isinstance(query, (str, unicode)), query
|
||||
url_parameters = dict()
|
||||
if sort is not github.GithubObject.NotSet:
|
||||
if sort is not github.GithubObject.NotSet: # pragma no branch (Should be covered)
|
||||
assert sort in ('stars', 'forks', 'updated'), sort
|
||||
url_parameters["sort"] = sort
|
||||
if order is not github.GithubObject.NotSet:
|
||||
if order is not github.GithubObject.NotSet: # pragma no branch (Should be covered)
|
||||
assert order in ('asc', 'desc'), order
|
||||
url_parameters["order"] = order
|
||||
|
||||
query_chunks = []
|
||||
if query:
|
||||
if query: # pragma no branch (Should be covered)
|
||||
query_chunks.append(query)
|
||||
|
||||
for qualifier, value in qualifiers.items():
|
||||
@@ -380,7 +380,7 @@ class Github(object):
|
||||
url_parameters["order"] = order
|
||||
|
||||
query_chunks = []
|
||||
if query:
|
||||
if query: # pragma no branch (Should be covered)
|
||||
query_chunks.append(query)
|
||||
|
||||
for qualifier, value in qualifiers.items():
|
||||
@@ -407,15 +407,15 @@ class Github(object):
|
||||
"""
|
||||
assert isinstance(query, (str, unicode)), query
|
||||
url_parameters = dict()
|
||||
if sort is not github.GithubObject.NotSet:
|
||||
if sort is not github.GithubObject.NotSet: # pragma no branch (Should be covered)
|
||||
assert sort in ('indexed',), sort
|
||||
url_parameters["sort"] = sort
|
||||
if order is not github.GithubObject.NotSet:
|
||||
if order is not github.GithubObject.NotSet: # pragma no branch (Should be covered)
|
||||
assert order in ('asc', 'desc'), order
|
||||
url_parameters["order"] = order
|
||||
|
||||
query_chunks = []
|
||||
if query:
|
||||
if query: # pragma no branch (Should be covered)
|
||||
query_chunks.append(query)
|
||||
|
||||
for qualifier, value in qualifiers.items():
|
||||
|
||||
Reference in New Issue
Block a user