@@ -6117,7 +6117,7 @@ def test_named_variable_macros() -> None:
61176117
61186118 assert model .python_env [c .SQLMESH_VARS ] == Executable .value (
61196119 {c .GATEWAY : "in_memory" , "test_var_a" : "test_value" , "overridden_var" : "initial_value" },
6120- use_deterministic_repr = True ,
6120+ sort_root_dict = True ,
61216121 )
61226122 assert (
61236123 model .render_query_or_raise ().sql ()
@@ -6144,7 +6144,7 @@ def test_variables_in_templates() -> None:
61446144
61456145 assert model .python_env [c .SQLMESH_VARS ] == Executable .value (
61466146 {c .GATEWAY : "in_memory" , "test_var_a" : "test_value" , "overridden_var" : "initial_value" },
6147- use_deterministic_repr = True ,
6147+ sort_root_dict = True ,
61486148 )
61496149 assert (
61506150 model .render_query_or_raise ().sql ()
@@ -6169,7 +6169,7 @@ def test_variables_in_templates() -> None:
61696169
61706170 assert model .python_env [c .SQLMESH_VARS ] == Executable .value (
61716171 {c .GATEWAY : "in_memory" , "test_var_a" : "test_value" , "overridden_var" : "initial_value" },
6172- use_deterministic_repr = True ,
6172+ sort_root_dict = True ,
61736173 )
61746174 assert (
61756175 model .render_query_or_raise ().sql ()
@@ -6309,7 +6309,7 @@ def test_variables_migrated_dbt_package_macro():
63096309 )
63106310 assert model .python_env [c .SQLMESH_VARS ] == Executable .value (
63116311 {"test_var_a" : "test_var_a_value" , "__dbt_packages__.test.test_var_b" : "test_var_b_value" },
6312- use_deterministic_repr = True ,
6312+ sort_root_dict = True ,
63136313 )
63146314 assert (
63156315 model .render_query ().sql (dialect = "bigquery" )
@@ -6535,7 +6535,7 @@ def test_unrendered_macros_sql_model(mocker: MockerFixture) -> None:
65356535 "virtual_var" : "blb" ,
65366536 "session_var" : "blc" ,
65376537 },
6538- use_deterministic_repr = True ,
6538+ sort_root_dict = True ,
65396539 )
65406540
65416541 assert "location1" in model .physical_properties
@@ -6623,7 +6623,7 @@ def model_with_macros(evaluator, **kwargs):
66236623 "virtual_var" : "blb" ,
66246624 "session_var" : "blc" ,
66256625 },
6626- use_deterministic_repr = True ,
6626+ sort_root_dict = True ,
66276627 )
66286628 assert python_sql_model .enabled
66296629
@@ -10583,10 +10583,10 @@ def unimportant_testing_macro(evaluator, *projections):
1058310583
1058410584 assert m .python_env .get (c .SQLMESH_VARS ) == Executable .value (
1058510585 {"selector" : "bla" , "bla_variable" : 1 , "baz_variable" : 2 },
10586- use_deterministic_repr = True ,
10586+ sort_root_dict = True ,
1058710587 )
1058810588 assert m .python_env .get (c .SQLMESH_BLUEPRINT_VARS ) == Executable .value (
10589- {"selector" : "baz" }, use_deterministic_repr = True
10589+ {"selector" : "baz" }, sort_root_dict = True
1059010590 )
1059110591
1059210592
0 commit comments