Discuss test assertions #60
Labels
flag:discuss
Flag issue that needs to be discussed before it can be implemented.
_flag:stale
[BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again
maint:coverage
Test coverage improvements that were not included in feature prioritization
type:maintenance
Upkeeping efforts & catch-up corrective improvements that are not Features nor Bugs
Asserting over what is returned from the mocked
get
function intest_query
has been brought up multiple times during conversations and PRs, most recently here.I'd like us to think about the questions below:
If not
If not
AggDatasetResponse
?Or perhaps we need to re-think and re-work the implementation.
Other thoughts related to testing:
Because we are mocking our
get
method in our tests (good), and the query generator is called only inside theget
method - technically inside thehttpx.post
call (neutral), the query generator is never tested (bad).One answer is to make separate unit tests for the query generator.
What do you think?
The text was updated successfully, but these errors were encountered: