Closed harperreed closed 2 weeks ago
Traceback (most recent call last):
File "/app/sweepai/handlers/on_ticket.py", line 167, in on_ticket
await fix_ci_failures(pull_request, tracking_id)
File "/app/sweepai/handlers/fix_ci.py", line 266, in fix_ci_failures
new_pull_request_number = results["pull_request"].get("number")
AttributeError: 'NoneType' object has no attribute 'get'
'NoneType' object has no attribute 'get'
Sweep has encountered a runtime error unrelated to your request. Please let us know via this link or at support@sweep.dev directly.
:book: For more information on how to use Sweep, please read our documentation.
Add unit tests for HelpHandler in internal/api/api.go
Description:
Create unit tests for the
HelpHandler
function ininternal/api/api.go
to ensure proper functionality of the help page rendering.Tasks:
internal/api/api_test.go
for the unit testsHelpHandler
functionTest:
Additional Tasks:
internal/api/api.go
to improve testabilityos.ReadFile
andtemplate.Parse
to allow mocking in tests