Skip to content

Commit cc88088

Browse files
committed
Remaining fixes for test script
1 parent eea3164 commit cc88088

3 files changed

Lines changed: 64 additions & 3 deletions

File tree

.vscode/launch.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Test Script",
6+
"type": "python",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/test.py",
9+
"console": "integratedTerminal",
10+
"cwd": "${workspaceFolder}",
11+
"env": {
12+
"PYTHONPATH": "${workspaceFolder}"
13+
},
14+
"python": "/Users/kevin/Library/Caches/pypoetry/virtualenvs/python-snoo-HW1KiLja-py3.13/bin/python",
15+
"args": []
16+
},
17+
{
18+
"name": "Debug Test Script with Diaper Logging",
19+
"type": "python",
20+
"request": "launch",
21+
"program": "${workspaceFolder}/test.py",
22+
"console": "integratedTerminal",
23+
"cwd": "${workspaceFolder}",
24+
"env": {
25+
"PYTHONPATH": "${workspaceFolder}"
26+
},
27+
"python": "/Users/kevin/Library/Caches/pypoetry/virtualenvs/python-snoo-HW1KiLja-py3.13/bin/python",
28+
"args": ["--log-diaper", "--diaper-note", "Debug test diaper"]
29+
}
30+
]
31+
}

poetry.lock

Lines changed: 32 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def test_device_status(snoo, device):
5050
def connection_callback(data):
5151
pass
5252

53-
await snoo.subscribe(device, connection_callback)
53+
snoo.start_subscribe(device, connection_callback)
5454
status = await snoo.get_status(device)
5555
print(f"✅ Current status: {status}")
5656

0 commit comments

Comments
 (0)