From 6851e0314e6d4e85c576ace96963df6077ce337b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 6 Feb 2024 16:11:50 +0100 Subject: [PATCH] Check OAuth environment to run UPS scenario 6723c2dced5b changed the environment variables needed to run the scenario. (grafted from ab006c11a55f1f53a9794e9dc90a80da852300dc) --HG-- branch : 7.0 --- modules/stock_package_shipping_ups/tests/test_scenario.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/stock_package_shipping_ups/tests/test_scenario.py b/modules/stock_package_shipping_ups/tests/test_scenario.py index 23f5380d62..fb52637c17 100644 --- a/modules/stock_package_shipping_ups/tests/test_scenario.py +++ b/modules/stock_package_shipping_ups/tests/test_scenario.py @@ -5,9 +5,8 @@ import os from trytond.tests.test_tryton import load_doc_tests -if (os.getenv('UPS_USER_ID') - and os.getenv('UPS_PASSWORD') - and os.getenv('UPS_LICENSE') +if (os.getenv('UPS_CLIENT_ID') + and os.getenv('UPS_CLIENT_SECRET') and os.getenv('UPS_ACCOUNT_NUMBER')): def load_tests(*args, **kwargs): return load_doc_tests(__name__, __file__, *args, **kwargs)