Skip to content

Conversation

@vitaliset
Copy link
Collaborator

Reverts #4828.

Reading #4834 I realized the old approach is simpler.

@vitaliset vitaliset changed the title Keeping event emissions test standard by mocking _get_datetime_now MNT Keeping event emissions test standard by mocking _get_datetime_now Jun 30, 2025
@vitaliset vitaliset requested a review from ViniciustCosta June 30, 2025 12:24
@ViniciustCosta
Copy link
Collaborator

Thanks! I think having to create the mock methods for all events would add some unnecessary work and complexity to the tests. Also, this approach seems to give more assurance that the event creation codepath works when called from the module being instrumented.

@vitaliset vitaliset merged commit 06536fd into master Jun 30, 2025
7 checks passed
@vitaliset vitaliset deleted the revert-4828-rejection_refactor_analyze_test branch June 30, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants