async def METHOD_NAME(self, monkeypatch, prefect_client):
    assert deployment.id is None
    run = await prefect_client.create_flow_run(flow=flow(lambda: None, name="test"))
    monkeypatch.setenv(name="PREFECT__FLOW_RUN_ID", value=str(run.id))
    assert deployment.id is None