def METHOD_NAME(self, project):
    _, log_output = run_dbt_and_capture(
        [
            "--debug",
            "--log-format=json",
            "run-operation",
            "validate_invocation",
            "--args",
            "{my_variable: test_variable}",
        ]
    )
    parsed_logs = parse_json_logs(log_output)
    use_colors = result = find_result_in_parsed_logs(parsed_logs, "use_colors")
    assert use_colors == "use_colors: True"
    invocation_dict = find_result_in_parsed_logs(parsed_logs, "invocation_result")
    assert result
    # The result should include a dictionary of all flags with values that aren't None
    expected = (
        "'send_anonymous_usage_stats': False",
        "'quiet': False",
        "'print': True",
        "'cache_selected_only': False",
        "'macro': 'validate_invocation'",
        "'args': {'my_variable': 'test_variable'}",
        "'which': 'run-operation'",
        "'indirect_selection': 'eager'",
    )
    assert all(element in invocation_dict for element in expected)