1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-22 21:22:22 +01:00
This commit is contained in:
J. Nick Koston
2025-09-16 12:03:28 -05:00
parent edd8fa8d6f
commit 81cfc30f3a
2 changed files with 8 additions and 4 deletions

View File

@@ -46,10 +46,12 @@ def test_external_components_skip_update_true(
# Call with skip_update=True
do_external_components_pass(config, skip_update=True)
# Verify clone_or_update was called with refresh=None
# Verify clone_or_update was called with NEVER_REFRESH
mock_clone_or_update.assert_called_once()
call_args = mock_clone_or_update.call_args
assert call_args.kwargs["refresh"] is None
from esphome import git
assert call_args.kwargs["refresh"] == git.NEVER_REFRESH
def test_external_components_skip_update_false(

View File

@@ -36,10 +36,12 @@ def test_packages_skip_update_true(
# Call with skip_update=True
do_packages_pass(config, skip_update=True)
# Verify clone_or_update was called with refresh=None
# Verify clone_or_update was called with NEVER_REFRESH
mock_clone_or_update.assert_called_once()
call_args = mock_clone_or_update.call_args
assert call_args.kwargs["refresh"] is None
from esphome import git
assert call_args.kwargs["refresh"] == git.NEVER_REFRESH
def test_packages_skip_update_false(