Skip to content

Commit

Permalink
Merge PR #3584 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed May 16, 2024
2 parents 049f6a8 + be6202c commit 5cb586e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import base64

from odoo import fields
from odoo.modules.module import get_module_resource
from odoo.tests import common
from odoo.tools.misc import file_path


class L10nEsAccountStatementImportN43(common.TransactionCase):
Expand Down Expand Up @@ -51,9 +51,7 @@ def setUpClass(cls):
"currency_id": eur_currency.id,
}
)
n43_file_path = get_module_resource(
"l10n_es_account_statement_import_n43", "tests", "test.n43"
)
n43_file_path = file_path("l10n_es_account_statement_import_n43/tests/test.n43")
n43_file = base64.b64encode(open(n43_file_path, "rb").read())
cls.import_wizard = (
cls.env["account.statement.import"]
Expand All @@ -62,8 +60,8 @@ def setUpClass(cls):
)

def test_import_n43_multi(self):
n43_file_path = get_module_resource(
"l10n_es_account_statement_import_n43", "tests", "testmulti.n43"
n43_file_path = file_path(
"l10n_es_account_statement_import_n43/tests/testmulti.n43"
)
n43_file = base64.b64encode(open(n43_file_path, "rb").read())
self.import_wizard.statement_file = n43_file
Expand Down

0 comments on commit 5cb586e

Please sign in to comment.