def METHOD_NAME(*argv, cmd=("deploy", "commcare")):
    envs = Path(__file__).parent.parent / "test_envs"
    diff = DeployDiff(None, "abc123", "def456", None)
    get_environment.reset_cache()
    with (
        patch("commcare_cloud.environment.paths.ENVIRONMENTS_DIR", envs),
        patch.object(command, "check_branch"),
        patch.object(command, "datetime", fakedatetime),
        patch.object(commcare, "confirm_deploy", lambda *a: True),
        patch.object(commcare, "DEPLOY_DIFF", diff),
        patch.object(Environment, "_create_generated_yml", lambda self:None),
    ):
        argv = ("cchq", "small_cluster") + cmd + argv
        try:
            call_commcare_cloud(argv)
        finally:
            get_environment.reset_cache()