View module source on GitHub

TestAnthropicWithMockWriter

class TestAnthropicWithMockWriter(unittest.TestCase)
Test class demonstrating how to use MockLogWriter for verification.

test_messages_with_mock_writer_verification

def test_messages_with_mock_writer_verification()
Test that demonstrates verifying logged commands with mock writer.

test_stream_with_mock_writer_verification

def test_stream_with_mock_writer_verification()
Test streaming with mock writer verification.