Opened 5 years ago

Last modified 3 months ago

#4024 enhancement assigned

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

Reported by: exarkun Owned by: exarkun
Priority: normal Milestone:
Component: web Keywords:
Cc: Branch: branches/resource-agent-4024
(diff, github, buildbot, log)
Author: exarkun Launchpad Bug:

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 (6)

comment:1 Changed 4 years ago by <automation>

  • Owner jknight deleted

comment:2 Changed 13 months ago by exarkun

  • Owner set to exarkun
  • Status changed from new to assigned

comment:3 Changed 13 months ago by exarkun

  • Author set to exarkun
  • Branch set to branches/resource-agent-4024

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

comment:4 Changed 3 months ago by jonathanj

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

comment:5 follow-up: Changed 3 months ago by exarkun

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 months ago by jonathanj

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.)

Note: See TracTickets for help on using tickets.