Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mock host #11

Open
sachalevy opened this issue May 28, 2022 · 0 comments
Open

Implement mock host #11

sachalevy opened this issue May 28, 2022 · 0 comments
Labels
test Testing related matters

Comments

@sachalevy
Copy link
Member

sachalevy commented May 28, 2022

Issues such as #10 require the client to post a request and have it processed by a host running in the background. Beyond mocking the HTTP request, and response, we need to implement a mock host capable of handling the request and returning a result to the client. Note that this does not need to be implemented as an actual host running in a background thread, but could be designed as a method to be called by the HTTP mock framework to run the Hugging Face pipeline and retrieve results.

The mock host should be made available through methods contained in a util file, in the test folder.

@sachalevy sachalevy added the test Testing related matters label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Testing related matters
Projects
None yet
Development

No branches or pull requests

1 participant