-
Notifications
You must be signed in to change notification settings - Fork 1
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
Chore/431 allocation tests #2618
Conversation
2761dbb
to
33397bd
Compare
product_id=29, # "Sugar: solid" | ||
) | ||
|
||
self.mock_get_response = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sepehr-Sobhani @pbastia any thoughts on ways we could possibly cut down on the size of the mocked get repsonse / post payloads in this file? This service returns/ingests a pretty large object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a class or function to generate the data objects not being tested (ie: where allocated emissions are 0)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dleard I think this is something that will be improved when we decouple the service return types from the API schemas. Using the API data types here forces us to use those large JSON objects, whereas we could use data structures much simpler or easy to manipulate for the service use case
391d031
to
f5fdf69
Compare
a540261
to
5c0d345
Compare
5c0d345
to
c3e5ae7
Compare
Frontend and Backend tests for Allocation of Emissions