-
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 ? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
Based on other discussions threads on similar topics - I shall use "Implementation 2" - i.e.
|
Beta Was this translation helpful? Give feedback.
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])