Report API refactorization

review8831002
This commit is contained in:
Nicolas Évrard committed 2015-01-20 18:49:55 +01:00
1 parent 05540321a3
commit 0b0a13272a
2 files changed
+9

No files matched your search

BIN
View File
Binary file not shown.
+9
View File
@@ -94,6 +94,15 @@ class PartyTestCase(unittest.TestCase):
}])
self.assert_(address.id)
def test0060party_label_report(self):
'Test party label report'
with Transaction().start(DB_NAME, USER, context=CONTEXT):
party1, = self.party.search([], limit=1)
report = POOL.get('party.label', type='report')
oext, content, _, _ = report.execute([party1.id], {})
self.assertEqual(oext, 'odt')
self.assertTrue(content)
def suite():
suite = trytond.tests.test_tryton.suite()