Add test coverage for register_correlation_hook_with_master_record #33
+45
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The new
register_correlation_hook_with_master_recordmethod lacked test coverage demonstrating that hooks receive the master record parameter correctly.Changes
New test hook (
use_master_recordintests/modules/test_module.py): Copies a value from master record to snapshot with "from_master" suffix. Only activates when source attribute starts with "master" to avoid test interference.Test registration: Registered hook via
register_correlation_hook_with_master_recordfor entity type A.Test data: Added entity A-423 with
data1="master_test"anddata2="placeholder".Integration test (
test_master_record_hookintests/test_api/test_snapshots.py): Verifies snapshot containsdata2="master_test_from_master", confirming the master record parameter was received and used.Example
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.