harperreed / proxai

a proxy server for the OpenAI API
MIT License
0 stars 0 forks source link

sweep: can you write tests for internal/api/api.go #15

Closed harperreed closed 2 weeks ago

harperreed commented 2 weeks ago

Add unit tests for HelpHandler in internal/api/api.go

Description:

Create unit tests for the HelpHandler function in internal/api/api.go to ensure proper functionality of the help page rendering.

Tasks:

Test:

Additional Tasks:

sweep-ai[bot] commented 2 weeks ago

❌ Error

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.

Tracking ID: d115851dd9