Skip to content

Commit

Permalink
Test all remote workers with scheduler username config
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Nov 22, 2024
1 parent 5738c9d commit 578da9a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/integration/test_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,11 @@ def test_undefined_additional_stores(worker, job_controller) -> None:
== 2
)


def test_submit_flow_with_scheduler_username(monkeypatch, job_controller) -> None:
@pytest.mark.parametrize(
"remote_worker_name",
[w for w in WORKERS if "remote" in w],
)
def test_submit_flow_with_scheduler_username(remote_worker_name, monkeypatch, job_controller) -> None:
from jobflow import Flow

from jobflow_remote import submit_flow
Expand All @@ -333,7 +336,6 @@ def test_submit_flow_with_scheduler_username(monkeypatch, job_controller) -> Non
from jobflow_remote.remote.queue import QueueManager
from jobflow_remote.testing import add

remote_worker_name = "test_remote_worker"

job = add(1, 1)
flow = Flow([job])
Expand Down

0 comments on commit 578da9a

Please sign in to comment.