Skip to content

Commit

Permalink
Fixing issue RedHatQE#156
Browse files Browse the repository at this point in the history
calling a wrong WSDL method :

Incorrect case usage detected for method: getProjectAtLocation in service: Project
Found at pylero/src/pylero/project.py on line 93
Found at pylero/src/pylero/project.py on line 110

Incorrect case usage detected for method: doAutoassign in service: Tracker
Found at pylero/src/pylero/work_item.py on line 813
Found at pylero/src/pylero/work_item.py on line 816

Signed-off-by: Eli Mesika <[email protected]>
  • Loading branch information
emesika committed Dec 4, 2023
1 parent 7ed0f90 commit 45745e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pylero/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, project_id=None, suds_object=None, location=None, uri=None):
References:
Project.getProject
Project.getProjectatLocation
Project.getProjectAtLocation
Project.getProjectByURI
"""
super(self.__class__, self).__init__(project_id, suds_object)
Expand All @@ -107,7 +107,7 @@ def __init__(self, project_id=None, suds_object=None, location=None, uri=None):
self._cache["projects"][project_id] = self._suds_object
elif location:
self._suds_object = (
self.session.project_client.service.getProjectatLocation(location)
self.session.project_client.service.getProjectAtLocation(location)
)
elif uri:
self._suds_object = self.session.project_client.service.getProjectByURI(uri)
Expand Down
4 changes: 2 additions & 2 deletions src/pylero/work_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ def do_auto_assign(self):
None
References:
Tracker.doAutoAssign
Tracker.doAutoassign
"""
self._verify_obj()
self.session.tracker_client.service.doAutoAssign(self.uri)
self.session.tracker_client.service.doAutoassign(self.uri)

def edit_approval(self, approvee_id, status):
"""Changes the status of an approval.
Expand Down

0 comments on commit 45745e5

Please sign in to comment.