45
45
I validate all HQ Entries
48
48
# The wizard only takes active_ids that are in context. So we search all HQ Entries, put them into context and launch the process!
49
49
hq_ids = self.pool.get('hq.entries').search(cr, uid, [])
50
wiz_id = self.create(cr, uid, {}, context={'active_ids': hq_ids})
51
self.validate(cr, uid, [wiz_id], context={'active_ids': hq_ids})
50
res = self.pool.get('hq.entries').get_validation_wizard(cr, uid, [], context={'active_ids': hq_ids})
52
assert res.get('res_model', False) == 'hq.entries.validation', "Wrong return type. Should be hq.entries.validation!"
53
55
I test HQ entries import result (5 JI on Jan the 8th, 4 JE in BIF, 1 JE on CHF, 2 JE in EUR, etc.)