Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
ft: unreverts some testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
urimandujano committed Feb 1, 2024
1 parent 3a00731 commit 4551399
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def enable_store_api_key_in_secret(monkeypatch):
stream_output=True,
),
lambda flow_run, deployment, flow: KubernetesWorkerJobConfiguration(
command="python -m prefect.engine",
command="prefect flow-run execute",
env={
**get_current_settings().to_environment_variables(exclude_unset=True),
"PREFECT__FLOW_RUN_ID": str(flow_run.id),
Expand Down Expand Up @@ -259,7 +259,11 @@ def enable_store_api_key_in_secret(monkeypatch):
},
],
"image": get_prefect_image_name(),
"args": ["python", "-m", "prefect.engine"],
"args": [
"prefect",
"flow-run",
"execute",
],
}
],
}
Expand Down Expand Up @@ -478,7 +482,7 @@ def enable_store_api_key_in_secret(monkeypatch):
stream_output=True,
),
lambda flow_run, deployment, flow: KubernetesWorkerJobConfiguration(
command="python -m prefect.engine",
command="prefect flow-run execute",
env={
**get_current_settings().to_environment_variables(exclude_unset=True),
"PREFECT__FLOW_RUN_ID": str(flow_run.id),
Expand Down Expand Up @@ -545,7 +549,11 @@ def enable_store_api_key_in_secret(monkeypatch):
},
],
"image": get_prefect_image_name(),
"args": ["python", "-m", "prefect.engine"],
"args": [
"prefect",
"flow-run",
"execute",
],
}
],
}
Expand Down Expand Up @@ -1211,7 +1219,7 @@ async def test_user_can_supply_a_sidecar_container_and_volume(self, flow_run):

# the prefect-job container is still populated
assert pod["containers"][0]["name"] == "prefect-job"
assert pod["containers"][0]["args"] == ["python", "-m", "prefect.engine"]
assert pod["containers"][0]["args"] == ["prefect", "flow-run", "execute"]

assert pod["containers"][1] == {
"name": "my-sidecar",
Expand Down

0 comments on commit 4551399

Please sign in to comment.