Under py312, MagicMock.has_calls raises an AttributeError. This is actually a good thing, as previously we weren't actually making the assertions we thought we were making. Fix the one place that we forgot the leading `assert_`, and switch it to `any_order=True`; this is required for the test to pass, as there are additional calls between the two expected calls. See https://github.com/python/cpython/commit/1d4d677d Change-Id: Ia2ff2f198b4c1312a3e7dce32f11b87050683d45
171 KiB
171 KiB