Test keywords by mocking resource local keywords

Hi All,

I’m waking up to this quite late as we have still been using RF3.1 and now moving to RF6.

It is about this “local keywords always have highest precedence”.

So we have been doing tests (unit test or in our case validation tests) for our resource keywords which are public to Test developers.

We have tested complex keywords which functionality has been spitted into local keywords by “mocking” these local keywords in resources files and using keyword “Set Library Search Order” get them in use.

For mocking functionality, we have created simple implementation on top of Python’s own mock library.

Any suggestion how to achieve this now that local keyword will always win and cannot be overridden?
Is there a way to test resource keywords (“test framework” or something) in RF?