From ba7b6405d338c859a8985d840bfaa1c604c2538a Mon Sep 17 00:00:00 2001 From: Dan Fuchs Date: Thu, 21 Nov 2024 13:57:22 -0600 Subject: [PATCH] Work around Pydantic HttpUrl equality bug --- tests/services/ci_manager_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/services/ci_manager_test.py b/tests/services/ci_manager_test.py index c64d0360..b82b07ec 100644 --- a/tests/services/ci_manager_test.py +++ b/tests/services/ci_manager_test.py @@ -337,4 +337,7 @@ async def test_shutdown( ], num_queued=2, ) - assert summary in (expected_summary1, expected_summary2) + assert summary.model_dump(mode="json") in ( + expected_summary1.model_dump(mode="json"), + expected_summary2.model_dump(mode="json"), + )