def hello(args: 'Namespace'): """ Run any of the hello world examples :param args: arguments coming from the CLI. """ if args.hello == 'fashion': from jina.helloworld.fashion.app import hello_world hello_world(args) elif args.hello == 'chatbot': from jina.helloworld.chatbot.app import hello_world hello_world(args) elif args.hello == 'multimodal': from jina.helloworld.multimodal.app import hello_world hello_world(args) elif args.hello == 'fork': from jina.helloworld.fork import fork_hello fork_hello(args) else: raise ValueError( f'must be one of [`fashion`, `chatbot`, `multimodal`, `fork`]')
def test_fashion(helloworld_args, query_document, tmpdir): """Regression test for fashion example.""" hello_world(helloworld_args) check_hello_world_results(os.path.join(str(tmpdir), 'demo.html'))