|
Here are two possible implementations of a "score_items" API Implementation 1 works well with Integration Test Cases (see test case below) but fails when served via flask because of the behavior described in #1067 for which Implementation 2 above is required. How do I write code that is compatible with both test cases and runtime simultaneously ? |
Answered by
jiyer2016
Sep 8, 2020
Replies: 2 comments
|
The reason these test cases are important is because I want to validate the execution pipeline via tests before even proceeding to save into the yatai repository. |
0 replies
|
Based on other discussions threads on similar topics - I shall use "Implementation 2" - i.e.
|
0 replies
Answer selected by
jiyer2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on other discussions threads on similar topics - I shall use "Implementation 2" - i.e.
score_items2()and then adjust the integration test cases such that:[resp] = service.score_items([rqst])