line tests ready

This commit is contained in:
Alvaro Andrés Rodríguez Scelza 2019-06-07 14:27:04 -03:00
parent d327922f34
commit 3224f10f45
2 changed files with 13 additions and 0 deletions

View file

@ -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)

View file

@ -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>