File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/cubejs-backend-native/test Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11from cube import TemplateContext
22import os
33from utils import answer_to_main_question
4+ from subdir_for_test .meta import main_question
45
56
67template = TemplateContext ()
1112value_or_default = os .getenv ('MY_OTHER_ENV_VAR' , 'my_default_value' )
1213template .add_variable ('value_or_default' , value_or_default )
1314
15+ template .add_variable ('main_question' , main_question ())
1416template .add_variable ('answer_to_main_question' , answer_to_main_question ())
Original file line number Diff line number Diff line change 1+ # Separate file module for testing python imports
2+
3+ # Simple test function
4+ def test_meta_function (query : dict ) -> dict :
5+ return query
6+
7+ def main_question () -> str :
8+ return "Why?"
You can’t perform that action at this time.
0 commit comments