Opened 7 years ago

Last modified 17 months ago

#4024 enhancement assigned

Add a verified fake of twisted.web.client.Agent

Reported by: Jean-Paul Calderone Owned by: Jean-Paul Calderone
Priority: normal Milestone:
Component: web Keywords:
Cc: posita Branch: branches/resource-agent-4024
branch-diff, diff-cov, branch-cov, buildbot
Author: exarkun

Description

Code using Agent should be easily testable without actually having an HTTP server or otherwise speaking HTTP. A fake which has easily specified behavior based on structured objects should be included in Twisted Web to make this possible.

Change History (7)

comment:1 Changed 6 years ago by <automation>

Owner: jknight deleted

comment:2 Changed 3 years ago by Jean-Paul Calderone

Owner: set to Jean-Paul Calderone
Status: newassigned

comment:3 Changed 3 years ago by Jean-Paul Calderone

Author: exarkun
Branch: branches/resource-agent-4024

(In [39706]) Branching to 'resource-agent-4024'

comment:4 Changed 3 years ago by Jonathan Jacobs

It would also be useful if there was a test helper agent for which one could define the response.

comment:5 Changed 3 years ago by Jean-Paul Calderone

It would also be useful if there was a test helper agent for which one could define the response.

Can you elaborate on this? My first reaction is that that is exactly the point of this ticket.

comment:6 in reply to:  5 Changed 3 years ago by Jonathan Jacobs

Replying to exarkun:

Can you elaborate on this? My first reaction is that that is exactly the point of this ticket.

It looks like ResourceTraversalAgent is probably a more structured way to accomplish what I originally wanted (which was simply a way to define the bytes in a response.)

comment:7 Changed 17 months ago by posita

Cc: posita added
Note: See TracTickets for help on using tickets.