giftig commented on PR #25950:
URL: https://github.com/apache/superset/pull/25950#issuecomment-1805911288

   Note that I tried to capture this scenario in a test case, but since it's 
quite complex, with one dataset referring to another and needing to render 
jinja in both, I couldn't see a sensible way of doing it in a unit test -- 
other unit tests for the dataset macro mock the method which would be rendering 
the jinja in the underlying dataset to begin with. I also found that the 
integration tests for jinja were much simpler and didn't cover the `dataset` 
macro.
   
   The test coverage for `dataset_macro` is sufficient to show that there isn't 
a regression in that macro, though; all I've done is add some extra context 
which may be used. I think that's ok in terms of coverage, but happy for 
feedback on that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to