-
Notifications
You must be signed in to change notification settings - Fork 124
[Integration][GitHub] Update Closed Pull Request Tests with Mocked Datetime #2298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mk-armah @emekanwaoma what about this one? |
User description
Description
What -
Why -
How -
Type of change
Please leave one option from the following and delete the rest:
All tests should be run against the port production environment(using a testing org).
Core testing checklist
Integration testing checklist
examples
folder in the integration directory.Preflight checklist
Screenshots
Include screenshots from your environment showing how the resources of the integration will look.
API Documentation
Provide links to the API documentation used for this integration.
PR Type
Tests
Description
Added
mock_datetime
fixture parameter to pull request test methodsAdded comments to prevent modification of critical test datetime values
Ensured consistent datetime mocking across test cases
Diagram Walkthrough
File Walkthrough
test_pull_request_exporter.py
Add datetime fixture to pull request tests
integrations/github/tests/github/core/exporters/test_pull_request_exporter.py
mock_datetime
fixture parameter to test methodstest_get_paginated_resources_various_states
andtest_get_paginated_resources_respects_max_results
TEST_PULL_REQUESTS
andmock_datetime
fixture