Skip to content

Commit

Permalink
add_run command missing refs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakec-routable committed Jun 25, 2024
1 parent 3ad7783 commit 3ccee18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions trcli/api/api_request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ def add_run(
milestone_id: int = None,
plan_id: int = None,
config_ids: List[int] = None,
assigned_to_id=None,
include_all=False,
refs=None,
assigned_to_id: int = None,
include_all: bool = False,
refs: str = None,
) -> Tuple[int, str]:
"""
Creates a new test run.
Expand Down
9 changes: 7 additions & 2 deletions trcli/api/project_based_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,13 @@ def create_or_update_test_run(self) -> Tuple[int, str]:
if not self.environment.run_id:
self.environment.log(f"Creating test run. ", new_line=False)
added_run, error_message = self.api_request_handler.add_run(
self.project.project_id, self.run_name, self.environment.milestone_id, self.environment.plan_id,
self.environment.config_ids
self.project.project_id,
self.run_name,
self.environment.milestone_id,
self.environment.plan_id,
self.environment.config_ids,
bool(self.environment.run_include_all),
self.environment.run_refs,
)
run_id = added_run
else:
Expand Down

0 comments on commit 3ccee18

Please sign in to comment.