-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] mail_outbound_static unittest test_ir_mail_server.py #962
[FIX] mail_outbound_static unittest test_ir_mail_server.py #962
Conversation
@simahawk or @pedrobaeza could you please have a look? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@rousseldenis or @jbaudoux could you maybe have a look? |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Could someone please review this or add the "no stale" label? |
@mt-software-de can you please amend the commit?
|
1d1bf15
to
f485751
Compare
I like "combat" 🤣 |
Executing the unittests with a python version >= 3.7.4 causing following error. Traceback (most recent call last): File "/opt/addons/mail_outbound_static/tests/test_ir_mail_server.py", line 117, in test_send_email_injects_from_with_canonical message = self._send_mail(mail_server_id=mail_server_id) File "/opt/addons/mail_outbound_static/tests/test_ir_mail_server.py", line 92, in _send_mail send_from, send_to, message_string = connect().sendmail.call_args[0] TypeError: 'NoneType' object is not subscriptable Now it checks the python version and changes the call for higher versions
f485751
to
bc7850a
Compare
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at b218067. Thanks a lot for contributing to OCA. ❤️ |
Fixing unittest mail_outbound_static unittest test_ir_mail_server.py
For higher python versions
I am currently using, python 3.9 without my changes i will get this error message on executing the unittests for mail_outbount_static.
Therefor i'm fixing the unittests for python version greater than equal 3.7.4