Skip to content

Commit 8f8f15a

Browse files
committed
modified changes to pass unit testing
1 parent 0197740 commit 8f8f15a

15 files changed

+1073
-705
lines changed

integrations/github-cloud/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to the GitHub Cloud integration will be documented in this file.
44

5+
## 0.1.8-dev (2024-04-06)
6+
7+
### Fixed
8+
- Fixed `WorkflowWebhookProcessor` tests by adding required `trace_id` parameter to `WebhookEvent` fixtures
9+
- Fixed test failures in `test_workflow_webhook_processor.py` by properly accessing event payload attributes
10+
- Fixed test failures in `test_handle_event_deleted` by creating a new event instead of modifying the existing one
11+
- Ensured all webhook processor tests are now passing correctly
12+
513
## 0.1.7-dev (2024-04-05)
614

715
### Added

integrations/github-cloud/client.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,10 @@ async def get_pull_requests(
229229
)
230230

231231
async for prs in stream_async_iterators_tasks(*pull_request_tasks):
232-
if prs: # Only yield if we have pull requests
233-
# Ensure each PR has the required fields
232+
if prs:
234233
for pr in prs:
235234
if "state" not in pr:
236-
pr["state"] = "unknown" # Set a default state if missing
235+
pr["state"] = "unknown"
237236
yield prs
238237

239238
async def get_issues(
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)