Access test fixtures for PyCharm

Hi,

I see plugin developers [1], [2] pull in code from intellij-community to make testing easier in their plugins.

Is this the intended way of accessing these fixtures and mocks for Pycharm? I have not found any piece of documentation that would make it easier for me to see what’s suggested here.

Bye,

Jo

[1] pydantic-pycharm-plugin/testSrc/com/jetbrains/python/PythonMockSdk.kt at main · koxudaxi/pydantic-pycharm-plugin · GitHub

[2] pycharm-pytest-imp/src/test/java/com/jetbrains/python/PythonMockSdk.java at master · theY4Kman/pycharm-pytest-imp · GitHub

Currently there is no better way than copy-and-paste. I have done this myself too.

You could also file an issue on YouTrack asking for the classes in question to be made public APIs, but such requests are unlikely to be fulfilled.