Opened 9 years ago
Last modified 3 years 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 8 years ago by
Owner: | jknight deleted |
---|
comment:2 Changed 6 years ago by
Owner: | set to Jean-Paul Calderone |
---|---|
Status: | new → assigned |
comment:3 Changed 6 years ago by
Author: | → exarkun |
---|---|
Branch: | → branches/resource-agent-4024 |
comment:4 Changed 5 years ago by
It would also be useful if there was a test helper agent for which one could define the response.
comment:5 follow-up: 6 Changed 5 years ago by
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 Changed 5 years ago by
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 3 years ago by
Cc: | posita added |
---|
(In [39706]) Branching to 'resource-agent-4024'