MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_access_token

Function test_access_token

tests_python/test_debugger.py:4101–4122  ·  view source on GitHub ↗
(case_setup)

Source from the content-addressed store, hash-verified

4099
4100
4101def test_access_token(case_setup):
4102 def update_command_line_args(self, args):
4103 i = args.index("--client")
4104 assert i > 0
4105 args.insert(i, "--access-token")
4106 args.insert(i + 1, "bar123")
4107 args.insert(i, "--client-access-token")
4108 args.insert(i + 1, "foo234")
4109 return args
4110
4111 with case_setup.test_file("_debugger_case_print.py", update_command_line_args=update_command_line_args) as writer:
4112 writer.write_add_breakpoint(1, "None") # I.e.: should not work (not authenticated).
4113
4114 writer.wait_for_message(lambda msg: "Client not authenticated." in msg, expect_xml=False)
4115
4116 writer.write_authenticate(access_token="bar123", client_access_token="foo234")
4117
4118 writer.write_version()
4119
4120 writer.write_make_initial_run()
4121
4122 writer.finished_ok = True
4123
4124
4125def test_namedtuple(case_setup):

Callers

nothing calls this directly

Calls 6

test_fileMethod · 0.80
write_add_breakpointMethod · 0.80
wait_for_messageMethod · 0.80
write_authenticateMethod · 0.80
write_versionMethod · 0.80

Tested by

no test coverage detected