mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
line tests ready
This commit is contained in:
parent
d327922f34
commit
3224f10f45
2 changed files with 13 additions and 0 deletions
|
|
@ -43,3 +43,7 @@ def clean_sys_argv():
|
|||
|
||||
def test_odoo_xml_field_and_record_declaration_ok():
|
||||
perform_test_on_file_expecting_result('check_line_samples/xml_lines_ok.xml', main)
|
||||
|
||||
|
||||
def test_odoo_xml_record_declaration_error():
|
||||
perform_test_on_file_expecting_result('check_line_samples/xml_lines_error_1.xml', main, expected_result=2)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="id">
|
||||
<field name="name">some.model.form.inherit</field>
|
||||
<field name="model">some.model</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue