Skip to content

Commit

Permalink
Add wizard simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
grindtildeath committed Feb 8, 2017
1 parent fa4cdd1 commit 237df7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions account_multicurrency_revaluation_report/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_currency_revaluation_report
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright 2012-2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp.tests.common import TransactionCase


class TestCurrencyRevaluationReport(TransactionCase):

def test_wizard_empty_accounts(self):
wizard = self.env['unrealized.report.printer']
wiz = wizard.create()
result = wiz.revaluate_currency()

self.assertEquals(result.get('type'), "ir.actions.report.xml")
self.assertEquals(
result.get('report_name'),
"account_multicurrency_revaluation_report.curr_unrealized")

0 comments on commit 237df7b

Please sign in to comment.