Demonstrates how to test a Ray serve deployment class directly without spinning up a Ray cluster.
The key method: func_or_class
, allows accessing the underlying class directly where normally, the class would be revised to a Ray serve deployment type due to the @serve.deployment
decorator.