question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tests: NotifyMQTT tests with `mqtts://` fail on macOS

See original GitHub issue

While working on #680, we discovered this the very first time.

For whatever reasons, after pulling, pytest -k test_plugin_mqtt_general now fails on my machine (Python 3.10.7, macOS 10.15), at this spot:

        # A Secure URL
        obj = apprise.Apprise.instantiate(
            'mqtts://user:pass@localhost/my/topic', suppress_exceptions=False)
        assert isinstance(obj, apprise.plugins.NotifyMQTT)
        assert obj.url().startswith('mqtts://user:pass@localhost/my/topic')
>       assert obj.notify(body="test=test") is True
E       AssertionError: assert False is True

_Originally posted by @amotl in https://github.com/caronc/apprise/issues/680#issuecomment-1272093508_

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
amotlcommented, Oct 16, 2022

Thanks for merging #700, Chris. I think it is safe to close this now.

1reaction
amotlcommented, Oct 15, 2022

It is now also failing on Linux on behalf of #694. Interesting. No worries though, I will figure it out.

https://app.travis-ci.com/github/caronc/apprise/jobs/585717472#L734

Job Python ENV OS State
2372.1 3.6 TOXENV=py36 Linux failed
2372.2 3.7 TOXENV=py37 Linux failed
2372.3 3.8 TOXENV=py38 Linux failed
2372.4 3.9 TOXENV=py39 Linux failed
2372.5 3.10 TOXENV=py310 Linux failed
2372.6 pypy3.6-7.3.3 TOXENV=pypy36 Linux passed
2372.7 pypy3.7-7.3.9 TOXENV=pypy37 Linux failed
2372.8 pypy3.8-7.3.9 TOXENV=pypy38 Linux failed
2372.9 pypy3.9-7.3.9 TOXENV=pypy39 Linux failed
2372.10 3.9 TOXENV=bare Linux passed
Read more comments on GitHub >

github_iconTop Results From Across the Web

Tests: Improve testing of NotifyMQTT #700 - caronc/apprise
Introduction While this patch does not intend to resolve the issue that NotifyMQTT tests using the mqtts:// protocol currently fail on macOS (#695), ......
Read more >
Check if a Mac disk is about to fail - Apple Support
Check if a Mac disk is about to fail. You can check the health of many disks using Disk Utility. Many disks include...
Read more >
Unable to test Mosquitto Server on Mac - Stack Overflow
I solved the first issue of not being able to use mosquitto_sub using brew link mosquitto . But I still get a connection...
Read more >
Stress-Testing MQTT Brokers: A Comparative Analysis ... - MDPI
This paper aims to assess the performance of several MQTT broker implementations (also known as MQTT servers) using stress testing, and to ...
Read more >
MQTT X: Cross-platform MQTT 5.0 Desktop Client
MQTT 5.0 desktop client running on macOS, Linux, and Windows. Windows ... Why MQTT X. MQTT X makes it faster and easier to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found