Skip to content

Commit

Permalink
AVX-55377: add missing 'session' argument for add_results (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Noonan <snoonan@aviatrix.com>
  • Loading branch information
tycho authored Jul 30, 2024
1 parent 0e13ab5 commit 1876ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_testrail/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def pytest_sessionfinish(self, session, exitstatus):
)
)
if self.testrun_id:
self.add_results(self.testrun_id)
self.add_results(session, self.testrun_id)
elif self.testplan_id:
testruns = self.get_available_testruns(
self.testplan_id, github_run_id=self.github_run_id
Expand Down Expand Up @@ -584,7 +584,7 @@ def add_result(
}
self.results.append(data)

def add_results(self, testrun_id):
def add_results(self, session, testrun_id):
"""
Add results one by one to improve errors handling.
Expand Down

0 comments on commit 1876ddd

Please sign in to comment.