Skip to content

Commit eff3bf6

Browse files
committed
This sets the queue and project names if specified by ExecutorTestParams
since this is how the testing infrastructure is meant to pass these parameters.
1 parent 512e053 commit eff3bf6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/_test_tools.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ def _get_executor_instance(ep: ExecutorTestParams, job: Optional[Job] = None) ->
4444
assert job.spec is not None
4545
job.spec.launcher = ep.launcher
4646
job.spec.attributes = JobAttributes(custom_attributes=ep.custom_attributes)
47+
if ep.project_name is not None:
48+
job.spec.attributes.project_name = ep.project_name
49+
if ep.queue_name is not None:
50+
job.spec.attributes.queue_name = ep.queue_name
4751
return JobExecutor.get_instance(ep.executor, url=ep.url)

0 commit comments

Comments
 (0)