Skip to content

Commit fe1c715

Browse files
committed
chore: stable test
chore: stable test
1 parent d19fb81 commit fe1c715

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/cubejs-backend-native/test/__snapshots__/jinja.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ exports[`Jinja (new api) render arguments-test.yml.jinja: arguments-test.yml.jin
186186
arg_seq_2: [5,4,3,2,1]
187187
arg_sum_tuple: 3
188188
arg_sum_map: 20
189-
arg_kwargs1: \\"arg1: first value, arg2: second value, kwarg:(3 arg)\\"
190-
arg_kwargs2: \\"arg1: first value, arg2: second value, kwarg:(3 arg,4 arg)\\"
191-
arg_kwargs3: \\"arg1: first value, arg2: second value, kwarg:(4 arg,3 arg,5 arg)\\"
189+
arg_kwargs1: \\"arg1: first value, arg2: second value, kwarg:(three=3 arg)\\"
190+
arg_kwargs2: \\"arg1: first value, arg2: second value, kwarg:(four=4 arg,three=3 arg)\\"
191+
arg_kwargs3: \\"arg1: first value, arg2: second value, kwarg:(five=5 arg,four=4 arg,three=3 arg)\\"
192192
arg_named_arguments1: \\"arg1: 1 arg, arg2: 2 arg\\"
193193
arg_named_arguments2: \\"arg1: 1 arg, arg2: 2 arg\\""
194194
`;

packages/cubejs-backend-native/test/templates/jinja-instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def arg_sum_map(obj):
3535

3636
@template.function
3737
def arg_kwargs(arg1, arg2, **kwargs):
38-
kwargs_str = ",".join(kwargs.values())
38+
kwargs_str = ",".join(f"{key}={value}" for key, value in sorted(kwargs.items()))
3939

4040
return "arg1: " + arg1 + ", arg2: " + arg2 + ", kwarg:(" + kwargs_str + ")"
4141

packages/cubejs-backend-native/test/templates/scoped-utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def arg_sum_map(obj):
2727
2828
@context_func
2929
def arg_kwargs(**kwargs):
30-
kwargs_str = ",".join(kwargs.values())
30+
kwargs_str = ",".join(f"{key}={value}" for key, value in sorted(kwargs.items()))
3131
3232
return "arg1: " + arg1 + ", arg2: " + arg2 + ", kwarg:(" + kwargs_str + ")"
3333

0 commit comments

Comments
 (0)