As described here mocks are passed in to the decorated function in the order they applied, so bottom up. Therefore the order in the current tests need to be changed (e.g. here. This doesn't lead to faliing tests since typeguard ignores instances of Mock or MagicMock (see here).