Skip to content

Consolidate common test setup with rstest fixtures #170

Description

@coderabbitai

Issue Description

The test suite currently has repetitive setup code where each test re-creates default MessageRequest and Payload instances. This repetition could be eliminated by using rstest fixtures to provide common test setup.

Current Situation

  • Tests manually recreate MessageRequest and Payload instances
  • Lines 52-59 in test files show this pattern
  • Makes it harder to add common setup like tracing spans later

Proposed Solution
Consider using rstest fixtures to provide common test setup, which would:

  • Eliminate code duplication
  • Make tests more maintainable
  • Simplify adding common setup elements in the future
  • Align with project testing guidelines

Context

This enhancement would improve test maintainability and follow DRY principles.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions