Skip to content

Commit 3010fca

Browse files
authored
Add imports for syrup example code snippets (#1716)
1 parent cf2d43a commit 3010fca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/development_testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ This is a snapshot test that asserts the output of an entity state:
135135

136136
```python
137137
# tests/components/example/test_sensor.py
138+
from homeassistant.core import HomeAssistant
139+
from syrupy.assertion import SnapshotAssertion
140+
141+
138142
async def test_sensor(
139143
hass: HomeAssistant,
140144
snapshot: SnapshotAssertion,

0 commit comments

Comments
 (0)