Skip to content

Commit 5bb7734

Browse files
authored
Merge pull request #430 from ExaWorks/set_attrs_in_exec_test_params
This sets the queue and project names if specified by `ExecutorTestPa…
2 parents 512e053 + eff3bf6 commit 5bb7734

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)