diff --git a/.drone.yml b/.drone.yml index e0bc2f7..9f91ecb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,8 +13,6 @@ pipeline: commands: - pip install tox - tox -e "${TOXENV}-${DATABASE}" - volumes: - - cache:/root/.cache services: postgresql: diff --git a/setup.py b/setup.py index 07cfd4f..ffd743d 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ for dep in info.get('depends', []): requires.append(get_require_version('%s_%s' % (prefix, dep))) requires.append(get_require_version('trytond')) -tests_require = [get_require_version('proteus')] +tests_require = [] dependency_links = [] if minor_version % 2: # Add development index for testing with proteus @@ -117,7 +117,4 @@ setup(name='%s_%s' % (PREFIX, MODULE), test_loader='trytond.test_loader:Loader', tests_require=tests_require, use_2to3=True, - convert_2to3_doctests=[ - 'tests/scenario_account_reconcile_different_party.rst', - ], ) diff --git a/tests/__init__.py b/tests/__init__.py index 4900fa1..92f715e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,9 @@ # This file is part of account_reconcile_different_party module for Tryton. # The COPYRIGHT file at the top level of this repository contains # the full copyright notices and license terms. -from .test_account_reconcile_different_party import suite +try: + from trytond.modules.account_reconcile_different_party.tests.test_account_reconcile_different_party import suite +except ImportError: + from .test_account_reconcile_different_party import suite __all__ = ['suite']