avocado-framework/avocado

View on GitHub
selftests/functional/job_timeout.py

Summary

Maintainability
A
2 hrs
Test Coverage

Using xml.dom.minidom.parse to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom.parse with its defusedxml equivalent function or make sure defusedxml.defuse_stdlib() is called
Open

            xunit_doc = xml.dom.minidom.parse(xml_output)
Severity: Minor
Found in selftests/functional/job_timeout.py by bandit

Using xml.dom.minidom to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.
Open

import xml.dom.minidom

File job_timeout.py has 260 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import glob
import os
import tempfile
import unittest
import xml.dom.minidom
Severity: Minor
Found in selftests/functional/job_timeout.py - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status