mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-31 07:46:17 +00:00
Merge pull request #713 from sajith/3306.test-grid-from-nevow-to-twisted-web
Replace nevow with twisted.web in test.web.test_grid Fixes: ticket:3306
This commit is contained in:
commit
19519e790e
0
newsfragments/3306.minor
Normal file
0
newsfragments/3306.minor
Normal file
@ -6,7 +6,7 @@ from six.moves import StringIO
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from nevow import rend
|
||||
from twisted.web import resource
|
||||
from twisted.trial import unittest
|
||||
from allmydata import uri, dirnode
|
||||
from allmydata.util import base32
|
||||
@ -27,8 +27,9 @@ DIR_HTML_TAG = '<html lang="en">'
|
||||
|
||||
class CompletelyUnhandledError(Exception):
|
||||
pass
|
||||
class ErrorBoom(rend.Page):
|
||||
def beforeRender(self, ctx):
|
||||
|
||||
class ErrorBoom(object, resource.Resource):
|
||||
def render(self, req):
|
||||
raise CompletelyUnhandledError("whoops")
|
||||
|
||||
class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMixin, unittest.TestCase):
|
||||
|
Loading…
x
Reference in New Issue
Block a user