Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 5ff8ff2

Browse files
committed
Start writing a test for BLEGattsValue()
Not sure how to create a test for ble_gatts_value_set() using the conn_handle and handle arguments
1 parent 47b9cc5 commit 5ff8ff2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pc_ble_driver_py/.#ble_driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
daniel@Kontoret.3580:1656620086

tests/test_pc_ble_driver_py.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,9 @@ def test_adv_start(ble_tester):
177177
ble_tester.driver.ble_gap_adv_data_set(adv_data)
178178
ble_tester.driver.ble_gap_adv_start(tag=1)
179179
time.sleep(2)
180+
181+
def test_ble_gatts_value(ble_tester):
182+
gatts_value = BLEGattsValue()
183+
gatts_value.value = [1,2,3,4]
184+
gatts_value.offset = 2
185+

0 commit comments

Comments
 (0)