From 54493faafcf5bd02326bcb4e976db1d31de23916 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 26 Apr 2026 09:53:07 -0500 Subject: [PATCH] Fix download_web_files_in_config tests for generator argument --- tests/unit_tests/test_external_files.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/test_external_files.py b/tests/unit_tests/test_external_files.py index 22e7c02043..a7d7f74895 100644 --- a/tests/unit_tests/test_external_files.py +++ b/tests/unit_tests/test_external_files.py @@ -372,8 +372,7 @@ def test_download_web_files_in_config_filters_and_dispatches( assert result is config mock_many.assert_called_once() - items = mock_many.call_args[0][0] - assert items == [ + assert list(mock_many.call_args[0][0]) == [ ("https://example.com/a", setup_core / "a"), ("https://example.com/c", setup_core / "c"), ] @@ -390,4 +389,4 @@ def test_download_web_files_in_config_no_web_entries( config = [{"file": {"type": "local", "path": "/tmp/a"}}] external_files.download_web_files_in_config(config, lambda _: setup_core / "x") mock_many.assert_called_once() - assert mock_many.call_args[0][0] == [] + assert list(mock_many.call_args[0][0]) == []