changeset 9f42118d4902 in modules/authentication_sms:default
details:
https://hg.tryton.org/modules/authentication_sms?cmd=changeset&node=9f42118d4902
description:
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
diffstat:
tests/test_module.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r cfe1940ebc6e -r 9f42118d4902 tests/test_module.py
--- a/tests/test_module.py Sat Apr 16 18:30:17 2022 +0200
+++ b/tests/test_module.py Mon Apr 18 19:30:20 2022 +0200
@@ -32,7 +32,7 @@
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[:]