Skip to content

Commit 1b1c220

Browse files
committed
fix tests
1 parent 76b0f4c commit 1b1c220

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_requirements.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
ATTR_INSTALLED_VERSION,
66
ATTR_SOURCES,
77
ATTR_VERSION,
8+
CONF_ALLOW_ALL_IMPORTS,
89
CONF_INSTALLED_PACKAGES,
910
DOMAIN,
1011
REQUIREMENTS_FILE,
@@ -33,7 +34,7 @@ async def test_install_requirements(hass, caplog):
3334
) as process_requirements, patch(
3435
"custom_components.pyscript.requirements.async_process_requirements"
3536
) as ha_install_requirements:
36-
entry = MockConfigEntry(domain=DOMAIN, data={})
37+
entry = MockConfigEntry(domain=DOMAIN, data={CONF_ALLOW_ALL_IMPORTS: True})
3738
entry.add_to_hass(hass)
3839

3940
# Check that packages get installed correctly
@@ -160,7 +161,7 @@ async def test_install_unpinned_requirements(hass, caplog):
160161
) as process_requirements, patch(
161162
"custom_components.pyscript.requirements.async_process_requirements"
162163
) as ha_install_requirements:
163-
entry = MockConfigEntry(domain=DOMAIN, data={})
164+
entry = MockConfigEntry(domain=DOMAIN, data={CONF_ALLOW_ALL_IMPORTS: True})
164165
entry.add_to_hass(hass)
165166

166167
process_requirements.return_value = {

0 commit comments

Comments
 (0)