Orchestrata Ultimate › Tests › Reference › postman › test_interface_implementations
Tests reference — tests/postman/test_interface_implementations.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_interface_implementations.py
source · 27 tests · 297 lines
Verification tests for postman interface implementations.
Covers: postman.envelope, postman.interfaces, postman.payload, postman.queue
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestIMessageEnvelopeImplementation |
59 | Verify IMessageEnvelope has a concrete implementation. |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_inherits_from_interface |
62 | EnvelopeHandler must inherit from IMessageEnvelope. |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_is_not_abstract |
66 | EnvelopeHandler must be instantiable (not abstract). |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_implements_create |
71 | EnvelopeHandler must implement the create method. |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_implements_validate |
76 | EnvelopeHandler must implement the validate method. |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_implements_serialize |
81 | EnvelopeHandler must implement the serialize method. |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_implements_deserialize |
86 | EnvelopeHandler must implement the deserialize method. |
| method | TestIMessageEnvelopeImplementation.test_envelope_handler_has_all_abstract_methods |
91 | EnvelopeHandler must implement every abstract method from the interface. |
| class | TestIPayloadHandlerImplementation |
110 | Verify IPayloadHandler has a concrete implementation. |
| method | TestIPayloadHandlerImplementation.test_payload_handler_inherits_from_interface |
113 | PayloadHandler must inherit from IPayloadHandler. |
| method | TestIPayloadHandlerImplementation.test_payload_handler_is_not_abstract |
117 | PayloadHandler must be instantiable (not abstract). |
| method | TestIPayloadHandlerImplementation.test_payload_handler_implements_validate |
122 | PayloadHandler must implement the validate method. |
| method | TestIPayloadHandlerImplementation.test_payload_handler_implements_compress |
127 | PayloadHandler must implement the compress method. |
| method | TestIPayloadHandlerImplementation.test_payload_handler_implements_decompress |
132 | PayloadHandler must implement the decompress method. |
| method | TestIPayloadHandlerImplementation.test_payload_handler_implements_create_payload |
137 | PayloadHandler must implement the create_payload method. |
| method | TestIPayloadHandlerImplementation.test_payload_handler_has_all_abstract_methods |
142 | PayloadHandler must implement every abstract method from the interface. |
| class | TestBaseQueueCheckpointRecover |
161 | Verify all BaseQueue subclasses implement checkpoint and recover. |
| method | TestBaseQueueCheckpointRecover.test_all_basequeue_subclasses_have_checkpoint |
175 | Every BaseQueue subclass must define checkpoint. |
| method | TestBaseQueueCheckpointRecover.test_all_basequeue_subclasses_have_recover |
187 | Every BaseQueue subclass must define recover. |
| method | TestBaseQueueCheckpointRecover.test_iqueue_implementations_have_checkpoint |
197 | IQueue implementations (non-BaseQueue) must also have checkpoint. |
| method | TestBaseQueueCheckpointRecover.test_iqueue_implementations_have_recover |
203 | IQueue implementations (non-BaseQueue) must also have recover. |
| method | TestBaseQueueCheckpointRecover.test_priority_queue_checkpoint_is_noop |
209 | PriorityQueue.checkpoint should be a no-op. |
| method | TestBaseQueueCheckpointRecover.test_priority_queue_recover_returns_zero |
215 | PriorityQueue.recover should return 0. |
| method | TestBaseQueueCheckpointRecover.test_disk_backed_queue_checkpoint_creates_file |
221 | DiskBackedQueue.checkpoint should write state to disk. |
| method | TestBaseQueueCheckpointRecover.test_disk_backed_queue_recover_from_empty |
230 | DiskBackedQueue.recover with no checkpoint file returns 0. |
| method | TestBaseQueueCheckpointRecover.test_bounded_queue_delegates_checkpoint |
236 | BoundedQueue.checkpoint should delegate to its wrapped queue. |
| method | TestBaseQueueCheckpointRecover.test_bounded_queue_delegates_recover |
242 | BoundedQueue.recover should delegate to its wrapped queue. |
| class | TestHealthNoBarePass |
249 | Verify health.py has no bare pass statements in except blocks. |
| method | TestHealthNoBarePass.test_no_bare_pass_in_try_blocks |
267 | health.py must not have bare pass as the only statement in try. |
| method | TestHealthNoBarePass.test_try_blocks_have_meaningful_content |
280 | Every try block in health.py should have meaningful statements. |
| method | TestHealthNoBarePass.test_health_module_has_logger |
293 | health.py should have a logger configured. |