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.

PR #92 introduced issues with the tests

See original GitHub issue

The function hci_adapter_exists_and_supports_bluetooth_le is breaking the tests.

I tried to work around that with a mock in ble_controller_test.py:

...
@mock.patch('homekit.controller.tools.hci_adapter_exists_and_supports_bluetooth_le', return_value=True)
class TestBLEController(unittest.TestCase):

    def test_discovery(self, mock1):
        ...

But this only gets used when I change the code under test form

from homekit.controller.tools import hci_adapter_exists_and_supports_bluetooth_le
...
        if not hci_adapter_exists_and_supports_bluetooth_le(adapter):
            raise BluetoothAdapterError('Adapter "{a}" does not suit our needs'.format(a=adapter))
...

to (in my eyes ugly):

import homekit
...
        if not homekit.controller.tools.hci_adapter_exists_and_supports_bluetooth_le(adapter):
            raise BluetoothAdapterError('Adapter "{a}" does not suit our needs'.format(a=adapter))
...

@Jc2k: can you help?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jlusiardicommented, Jan 17, 2019

Tests are green again

0reactions
Jc2kcommented, Jan 17, 2019

Gitter does - you can see the vmware_exporter one here https://github.com/pryorda/vmware_exporter/blob/master/README.md - there is a badge that links to it and you can read without signing up. I don’t know how usable it is with a large chat history we’ve only just started using it.

Slack is probably the most closed and wouldn’t go that way.

Discord works in browser too and there is a persistent history but you have to be signed in I think. You could join the home assistant one to get a feel if what it’s like. It’s meant for gamers so has voice chat and stuff but I know a few large non gamer communities (like homeassistant) use it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Statistical tests, P values, confidence intervals, and power
Misinterpretation and abuse of statistical tests, confidence intervals, and statistical power have been decried for decades, yet remain rampant.
Read more >
CLIA Law & Regulation - CDC
In general terms, the CLIA regulations establish quality standards for laboratory testing performed on specimens from humans, such as blood, body fluid and ......
Read more >
Thrombocytopenia (low platelet count) - Mayo Clinic
Thrombocytopenia — Comprehensive overview covers symptoms, causes, treatment of a low platelet count.
Read more >
Serum Progesterone Test: Purpose, Results, and Risks
In addition to pregnancy, high progesterone levels can be caused by: ovarian cancer.
Read more >
Explaining the US–India Nuclear Deal - Taylor & Francis Online
They also help draw attention to the problems arising from a situation ... This is a revised and updated version of a paper...
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