From 3ce77bd0bd33efb395ea3eb4bf429bfd5da9bf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 18 Apr 2022 19:30:20 +0200 Subject: [PATCH] Use current module to configure send_sms testing method When tests are discovered module can be imported from a different path, so we must ensure to configure the same method so the global variable sms_queue is the same. issue9215 --- tests/test_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_module.py b/tests/test_module.py index 44f55c07be..ba1c47dfb0 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -32,7 +32,7 @@ class AuthenticationSMSTestCase(ModuleTestCase): config.add_section('authentication_sms') config.set( 'authentication_sms', 'function', - 'trytond.modules.authentication_sms.tests.send_sms') + '.'.join([send_sms.__module__, send_sms.__qualname__])) self.addCleanup(config.remove_section, 'authentication_sms') del sms_queue[:]