Converts a Python dictionary or other native data type into a valid XML string.
86
{
"context": "Evaluates the ability to route dicttoxml's debug logging to a caller-specified file while converting Python payloads to XML bytes. Focuses on correct use of dicttoxml.set_debug toggles and ensuring debug-enabled runs write log output while quiet runs avoid touching the log path.",
"type": "weighted_checklist",
"checklist": [
{
"name": "XML conversion",
"description": "Uses dicttoxml.dicttoxml (or equivalent import) to convert the provided payload and return bytes with the default root wrapper, matching the inputs described in the spec.",
"max_score": 30
},
{
"name": "Enable logging",
"description": "Invokes dicttoxml.set_debug(debug=True, filename=the caller-provided path) before conversion when debugging is requested so debug output targets that file.",
"max_score": 30
},
{
"name": "Disable logging",
"description": "Uses dicttoxml.set_debug(debug=False, filename=the provided path or default) or equivalent to ensure debug logging is off when requested while still performing the conversion.",
"max_score": 20
},
{
"name": "Log file content",
"description": "When debug is enabled, ensures the chosen log file is created and contains non-empty debug content by the end of the conversion (including flushing/closing handlers as needed).",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-dicttoxmldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10