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

Function _check_tuple

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

Source from the content-addressed store, hash-verified

2944
2945
2946def _check_tuple(json_facade, json_hit):
2947 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_4")
2948 assert variable.value == "tuple('a', 1, self.var1: 13)"
2949
2950 var0 = json_facade.get_var(variable.variablesReference, "0")
2951
2952 response = json_facade.write_set_variable(variable.variablesReference, var0.name, "1", success=False)
2953 assert response.message.startswith("Unable to change: ")
2954
2955 var1 = json_facade.get_var(variable.variablesReference, "var1")
2956 json_facade.write_set_variable(variable.variablesReference, var1.name, "2")
2957
2958 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_4")
2959 assert variable.value == "tuple('a', 1, self.var1: 2)"
2960
2961
2962def _check_dict_subclass(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