Browse Source
Merge pull request #1150 from Tecnativa/9.0-base_import_match-fix_integration_tests
[FIX] base_import_match: Move to post testing
pull/983/head
Moises Lopez - https://www.vauxoo.com/
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
base_import_match/tests/test_import.py
|
|
@ -4,7 +4,7 @@ |
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
from os import path |
|
|
|
from openerp.tests.common import TransactionCase |
|
|
|
from openerp.tests.common import at_install, post_install, TransactionCase |
|
|
|
|
|
|
|
|
|
|
|
PATH = path.join(path.dirname(__file__), "import_data", "%s.csv") |
|
|
@ -15,6 +15,8 @@ OPTIONS = { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@at_install(False) |
|
|
|
@post_install(True) |
|
|
|
class ImportCase(TransactionCase): |
|
|
|
def _base_import_record(self, res_model, file_name): |
|
|
|
"""Create and return a ``base_import.import`` record.""" |
|
|
|