(case_setup)
| 4099 | |
| 4100 | |
| 4101 | def 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 | |
| 4125 | def test_namedtuple(case_setup): |
nothing calls this directly
no test coverage detected