17 lines
612 B
Python
17 lines
612 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
import os
|
|
|
|
from trytond.tests.test_tryton import TEST_NETWORK, load_doc_tests
|
|
|
|
|
|
def load_tests(*args, **kwargs):
|
|
if (not TEST_NETWORK
|
|
or not (os.getenv('DPD_USER_ID') and os.getenv('DPD_PASSWORD'))):
|
|
kwargs.setdefault('skips', set()).update([
|
|
'scenario_shipping_dpd.rst',
|
|
'scenario_stock_package_shipping_dpd_international.rst',
|
|
])
|
|
return load_doc_tests(__name__, __file__, *args, **kwargs)
|