MCPcopy Index your code
hub / github.com/bugy/script-server / test_log_with_secure

Method test_log_with_secure

src/tests/executor_test.py:547–560  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

545 self.assertEqual(['some text', ' and continuation'], observer.data)
546
547 def test_log_with_secure(self):
548 parameter = create_script_param_config('p1', secure=True)
549 config = self._create_config(parameters=[parameter])
550
551 self.create_and_start_executor(config, {'p1': 'a'})
552
553 self.write_process_output('a| some text')
554 self.write_process_output('\nand a new line')
555 self.write_process_output(' with some long long text |a')
556
557 self.finish_process()
558
559 output = self.get_finish_output()
560 self.assertEqual(output, '******| some text\nand ****** new line with some long long text |******')
561
562 def test_log_with_secure_when_ui_mapping(self):
563 parameter = create_script_param_config(

Callers

nothing calls this directly

Calls 6

_create_configMethod · 0.95
write_process_outputMethod · 0.95
finish_processMethod · 0.95
get_finish_outputMethod · 0.95

Tested by

no test coverage detected