MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / _check_dict_subclass

Function _check_dict_subclass

tests_python/test_debugger_json.py:2962–2980  ·  view source on GitHub ↗
(json_facade, json_hit)

Source from the content-addressed store, hash-verified

2960
2961
2962def _check_dict_subclass(json_facade, json_hit):
2963 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_3")
2964 assert variable.value == "{in_dct: 20; self.var1: 10}"
2965
2966 var1 = json_facade.get_var(variable.variablesReference, "var1")
2967
2968 json_facade.write_set_variable(variable.variablesReference, var1.name, "2")
2969
2970 # Check that it was actually changed.
2971 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_3")
2972 assert variable.value == "{in_dct: 20; self.var1: 2}"
2973
2974 var_in_dct = json_facade.get_var(variable.variablesReference, "'in_dct'")
2975
2976 json_facade.write_set_variable(variable.variablesReference, var_in_dct.name, "5")
2977
2978 # Check that it was actually changed.
2979 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_3")
2980 assert variable.value == "{in_dct: 5; self.var1: 2}"
2981
2982
2983def _check_set(json_facade, json_hit):

Callers

nothing calls this directly

Calls 3

get_local_varMethod · 0.80
get_varMethod · 0.80
write_set_variableMethod · 0.80

Tested by

no test coverage detected