using asyncio-pytest works fine locally, but when Pipelines are registered during pytest collection, it has conflicts
Ex.
INTERNALERROR> RuntimeError: Attempting to register name image_classification as <class 'src.deepsparse.image_classification.pipeline.ImageClassificationPipeline'> however image_classification has already been registered as <class 'deepsparse.image_classification.pipeline.ImageClassificationPipeline'>
Description
Adds tests for Pipeline.run_async()
Problem
Testing run_async() currently requires some hacking in tests/server. Isolate Pipeline func's test.
Solution
Simple pipeline running run_async
Usage
Note
using asyncio-pytest works fine locally, but when Pipelines are registered during pytest collection, it has conflicts Ex.
So created homemade solution to run asyncio