For function, I agree, but is this unit-test or integration testing?
If you run up your application, and test how the functionality works from an external application, I would not call it "Unit-test" (or as it should have been called: Class test).
You can debate that your function/microservice is a "unit", but I do disagree, especially if it comes with a web-server which most microservices do.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.