Skip to content

Commit

Permalink
Merge d746bd7 into 238058c
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianKuehnel committed Oct 6, 2019
2 parents 238058c + d746bd7 commit 550c0b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bluepy==1.2.0
bluepy==1.3.0
pygatt==3.2.0
typing>=3,<4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def readme():
zip_safe=False,
extras_require={
'testing': ['pytest'],
'bluepy': ['bluepy==1.2.0'],
'bluepy': ['bluepy==1.3.0'],
'pygatt': ['pygatt==3.4.0'],
},
install_requires=['typing>=3,<4'],
Expand Down
5 changes: 3 additions & 2 deletions test/unit_tests/test_bluepy.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ def test_check_backend_ok(self):
"""Test check_backend successfully."""
self.assertTrue(BluepyBackend.check_backend())

@mock.patch('bluepy.btle.Peripheral', **{'side_effect': BTLEException(1, 'text')})
def test_connect_exception(self, _):
@mock.patch('bluepy.btle.Peripheral')
def test_connect_exception(self, mock_peripheral):
"""Test exception wrapping."""
mock_peripheral.side_effect = BluetoothBackendException('Test')
backend = BluepyBackend()
with self.assertRaises(BluetoothBackendException):
backend.connect(TEST_MAC)
Expand Down

0 comments on commit 550c0b0

Please sign in to comment.