Skip to content

Commit b64fd83

Browse files
author
ci bot
committed
Merge branch 'scheduler-fix' into 'enterprise'
fix(test-schedules): incorrect parameters passed to cli See merge request dkinternal/testgen/dataops-testgen!218
2 parents db9bb73 + c950481 commit b64fd83

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

testgen/ui/views/test_runs.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,17 @@ def init(self) -> None:
123123
self.test_suites = get_db_test_suite_choices(self.project_code)
124124

125125
def get_arg_value(self, job):
126-
return self.test_suites.loc[
127-
self.test_suites["id"] == job.kwargs["test_suite_id"], "test_suite"
128-
].iloc[0]
126+
return job.kwargs["test_suite_key"]
129127

130128
def arg_value_input(self) -> tuple[bool, list[typing.Any], dict[str, typing.Any]]:
131-
ts_id = testgen.select(
129+
ts_name = testgen.select(
132130
label="Test Suite",
133131
options=self.test_suites,
134-
value_column="id",
132+
value_column="test_suite",
135133
display_column="test_suite",
136134
required=True,
137135
)
138-
return bool(ts_id), [], {"test_suite_id": ts_id}
136+
return bool(ts_name), [], {"project_code": self.project_code, "test_suite_key": ts_name}
139137

140138

141139
def render_empty_state(project_code: str, user_can_run: bool) -> bool:

0 commit comments

Comments
 (0)