-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa4cdd1
commit 237df7b
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import test_currency_revaluation_report |
18 changes: 18 additions & 0 deletions
18
account_multicurrency_revaluation_report/tests/test_currency_revaluation_report.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |