Language: Python
Label: vulnerable
CWE: CWE-693 \u2014 Protection Mechanism Failure
The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.

Code:
    def test_custom_connector_template_loader_no_templates(self):
        CONFIG.security.allow_custom_connector_functions = True

        connector_templates = CustomConnectorTemplateLoader.get_connector_templates()
        assert connector_templates == {}