Make HTTPRequestHandler in autopilot tests modular
Bug #1447557 reported by
Ugo Riboni
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app |
Invalid
|
Medium
|
Unassigned | ||
webbrowser-app (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Currently the class http_server.
It should instead allow to register arbitrary functions that will be called when the request path matches a certain criteria.
For example the setup for our current geolocation test would look something like this:
def geolocation_
html = '<html>
self.server.
Changed in webbrowser-app: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: autopilot |
Changed in webbrowser-app (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in webbrowser-app: | |
status: | Confirmed → Invalid |
To post a comment you must log in.