Orchestrata Ultimate › Tests › Reference › postman › test_coverage_envelope

Tests reference — tests/postman/test_coverage_envelope.py

Module of tests/postman, split out because the directory page would be too large.

Prose pending.

tests/postman/test_coverage_envelope.py

source · 4 tests · 104 lines

Tests to cover missing lines in EnvelopeHandler (lines 122, 222-223).

Covers: postman.envelope, postman.exceptions, postman.types

Kind Name Line Description
class TestCreatePostValidationFailure 26 Cover line 122: create() raises InvalidEnvelopeError when the
method TestCreatePostValidationFailure.test_create_with_invalid_recipient_format_triggers_post_validation_error 40 Recipient INVALID RECIPIENT! passes emptiness check but fails
method TestCreatePostValidationFailure.test_create_with_uppercase_recipient_triggers_post_validation_error 51 Recipient ALLCAPS has no lowercase or dot/dash pattern match.
class TestSerializeErrorPath 62 Cover lines 222-223: serialize() catches TypeError/ValueError/
method TestSerializeErrorPath.test_serialize_envelope_with_corrupt_timestamp_raises_payload_error 75 Setting timestamp to an int causes to_dict() to raise
method TestSerializeErrorPath.test_serialize_envelope_with_corrupt_priority_raises_payload_error 91 Setting priority to an object without .value causes to_dict()