"PyCharm knew that in testing you do the import inside the unit test not at module start" is a quote from the "Getting Started with PyCharm 7/8: Testing" video about testing capabilities provided by PyCharm.
From PEP8:
Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.
In this other SO question, the concept of where to import in python has already been addressed as a broder concept. However, there's no mention of the special case when unit testing.
What advantages would we get from importing inside tests instead of at the start of the module?
If different tests use the same modules, does the module have to be imported each time?