From 3010fca7f57d178c9b10e783580e8d8ec270786d Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Thu, 16 Mar 2023 08:02:25 -0700 Subject: [PATCH] Add imports for syrup example code snippets (#1716) --- docs/development_testing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/development_testing.md b/docs/development_testing.md index a8154434..89b63502 100644 --- a/docs/development_testing.md +++ b/docs/development_testing.md @@ -135,6 +135,10 @@ This is a snapshot test that asserts the output of an entity state: ```python # tests/components/example/test_sensor.py +from homeassistant.core import HomeAssistant +from syrupy.assertion import SnapshotAssertion + + async def test_sensor( hass: HomeAssistant, snapshot: SnapshotAssertion,