Commit 6a855bb5 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

removed testing call from issue and notes

parent 8c494151
...@@ -247,10 +247,9 @@ def gitlab_get_project(project, public=False): ...@@ -247,10 +247,9 @@ def gitlab_get_project(project, public=False):
working_project = gl.projects.get(project) working_project = gl.projects.get(project)
return working_project return working_project
def gitlab_get_issue(project, issue, public=False, testing=False): def gitlab_get_issue(project, issue, public=False):
"""Takes two integers and grabs corresponding gitlab issue.""" """Takes two integers and grabs corresponding gitlab issue."""
working_project = gitlab_get_project( working_project = gitlab_get_project(project, public=public)
project, public=public, testing=testing)
try: try:
working_issue = working_project.issues.get(issue) working_issue = working_project.issues.get(issue)
except (ConnectTimeout, ConnectionError): except (ConnectTimeout, ConnectionError):
...@@ -260,10 +259,9 @@ def gitlab_get_issue(project, issue, public=False, testing=False): ...@@ -260,10 +259,9 @@ def gitlab_get_issue(project, issue, public=False, testing=False):
working_issue = project.issues.get(issue) working_issue = project.issues.get(issue)
return working_issue return working_issue
def gitlab_get_notes_list(project, issue, public=False, testing=False): def gitlab_get_notes_list(project, issue, public=False):
"""Grabs the notes list for a specific issue.""" """Grabs the notes list for a specific issue."""
working_issue = gitlab_get_issue( working_issue = gitlab_get_issue(project, issue, public=public)
project, issue, public=public, testing=testing)
notes_list = working_issue.notes.list() notes_list = working_issue.notes.list()
return notes_list return notes_list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment