From 98dc60f9d6e533d595ab71ee69a6fac95336f406 Mon Sep 17 00:00:00 2001 From: Lila Date: Fri, 18 Apr 2025 16:08:18 -0400 Subject: [PATCH] Update tests to expect batch_size to agree with changes --- awx/main/tests/unit/models/test_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/tests/unit/models/test_jobs.py b/awx/main/tests/unit/models/test_jobs.py index f35b633f76..3695b2bf26 100644 --- a/awx/main/tests/unit/models/test_jobs.py +++ b/awx/main/tests/unit/models/test_jobs.py @@ -103,7 +103,7 @@ def test_finish_job_fact_cache_with_existing_data(hosts, mocker, tmpdir, ref_tim assert host.ansible_facts_modified == ref_time assert hosts[1].ansible_facts == ansible_facts_new assert hosts[1].ansible_facts_modified > ref_time - bulk_update.assert_called_once_with([hosts[1]], ['ansible_facts', 'ansible_facts_modified']) + bulk_update.assert_called_once_with([hosts[1]], ['ansible_facts', 'ansible_facts_modified'], batch_size=100) def test_finish_job_fact_cache_with_bad_data(hosts, mocker, tmpdir): @@ -139,4 +139,4 @@ def test_finish_job_fact_cache_clear(hosts, mocker, ref_time, tmpdir): assert host.ansible_facts_modified == ref_time assert hosts[1].ansible_facts == {} assert hosts[1].ansible_facts_modified > ref_time - bulk_update.assert_called_once_with([hosts[1]], ['ansible_facts', 'ansible_facts_modified']) + bulk_update.assert_called_once_with([hosts[1]], ['ansible_facts', 'ansible_facts_modified'], batch_size=100)