ModuleNotFoundError: No module named 'function_app' while trying to unit test Python V2 Azure Functions

Clay Casper 101 Reputation points

I'm trying to unit test my python v2 azure function. Here's some of the only documentation ( I could find. I think it's either outdated or there is not enough context. For instance, when it says to import the main function from function_app, I tried doing that but got an import error. Specifically, ModuleNotFoundError: No module named 'function_app'. I tried adding but that still didn't work.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,725 questions
{count} votes