Skip to content

Rewrite tests to avoid mocking HTTP messages #45

Open
@sagikazarmark

Description

@sagikazarmark
Q A
Bug? no
New Feature? no
Version <=1.3.x

Actual Behavior

Testing our code is pretty hard because of all the mocks necessary to test HTTP Message related code and Plugin Chain.

Expected Behavior

It should be pretty easy to understand tests, modify behaviour, provide new test cases, etc.

Possible Solutions

  • Rewrite specifications to simple unit tests using the MockClient.
  • Rewrite specifications to use actual Message objects (so only remove mocking, but preserve specifications)

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions