PR #92 introduced issues with the tests
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tests are green again
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.