summaryrefslogtreecommitdiff
path: root/odoo/addons/test_documentation_examples
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-06-16 13:50:11 +0200
committerMartin Trigaux <mat@odoo.com>2017-06-16 15:14:27 +0200
commitc060e90d81a9355c0ed4ce701de8fe2a8c0d5e05 (patch)
tree0f17d94ff38fe48fe53b86bf15a3189d1a3e7f60 /odoo/addons/test_documentation_examples
parent191ad830cac47082a51f9f9f20b805311eb89360 (diff)
[FIX] doc: correctly link doc and test lines
The test is surprisingly formated but it is to be able to extract the relevant lines in the documentation
Diffstat (limited to 'odoo/addons/test_documentation_examples')
-rw-r--r--odoo/addons/test_documentation_examples/tests/test_delegation.py12
-rw-r--r--odoo/addons/test_documentation_examples/tests/test_inheritance.py12
2 files changed, 20 insertions, 4 deletions
diff --git a/odoo/addons/test_documentation_examples/tests/test_delegation.py b/odoo/addons/test_documentation_examples/tests/test_delegation.py
index 90279f24208..327485e63ea 100644
--- a/odoo/addons/test_documentation_examples/tests/test_delegation.py
+++ b/odoo/addons/test_documentation_examples/tests/test_delegation.py
@@ -19,8 +19,16 @@ class TestDelegation(common.TransactionCase):
record = self.record
# children fields can be looked up on the parent record directly
- self.assertEqual(record.field_0, 0)
- self.assertEqual(record.field_1, 1)
+ self.assertEqual(
+ record.field_0
+ ,
+ 0
+ )
+ self.assertEqual(
+ record.field_1
+ ,
+ 1
+ )
def test_swap_child(self):
env = self.env
diff --git a/odoo/addons/test_documentation_examples/tests/test_inheritance.py b/odoo/addons/test_documentation_examples/tests/test_inheritance.py
index 699c6b98ed2..38a1ae5747b 100644
--- a/odoo/addons/test_documentation_examples/tests/test_inheritance.py
+++ b/odoo/addons/test_documentation_examples/tests/test_inheritance.py
@@ -10,5 +10,13 @@ class TestBasicInheritance(common.TransactionCase):
a = env['inheritance.0'].create({'name': 'A'})
b = env['inheritance.1'].create({'name': 'B'})
- self.assertEqual(a.call(), "This is model 0 record A")
- self.assertEqual(b.call(), "This is model 1 record B")
+ self.assertEqual(
+ a.call()
+ ,
+ "This is model 0 record A"
+ )
+ self.assertEqual(
+ b.call()
+ ,
+ "This is model 1 record B"
+ )