Coverage for adhoc-cicd-odoo-odoo / odoo / _monkeypatches / zeep.py: 88%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-09 18:15 +0000

1from zeep.xsd import visitor 

2from zeep.xsd.const import xsd_ns 

3 

4 

5def patch_module(): 

6 # see https://github.com/mvantellingen/python-zeep/issues/1185 

7 if visitor.tags.notation.localname != 'notation': 7 ↛ exitline 7 didn't return from function 'patch_module' because the condition on line 7 was always true

8 visitor.tags.notation = xsd_ns('notation') 

9 visitor.SchemaVisitor.visitors[visitor.tags.notation] = visitor.SchemaVisitor.visit_notation