From 49c7cdd3f62530d48f31cedbff740f3b14067c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Mon, 27 May 2024 16:44:31 +0200 Subject: [PATCH] tests: make test more robust (sometimes `call_count` is three but actually the exact number is not relevant for the test) --- tests/console/test_application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/console/test_application.py b/tests/console/test_application.py index b7d057b687c..b604403c4ba 100644 --- a/tests/console/test_application.py +++ b/tests/console/test_application.py @@ -129,7 +129,7 @@ def test_application_verify_cache_flag_at_install( tester.execute(command) - assert spy.call_count == 2 + assert spy.call_count > 0 for call in spy.mock_calls: (name, args, kwargs) = call assert "disable_cache" in kwargs