mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 22:07:51 +00:00
Replace nevow with twisted.web in test.web.test_grid
This commit is contained in:
parent
0a43409adc
commit
edd4cab42b
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(resource.Resource):
|
||||
def render(self, req):
|
||||
raise CompletelyUnhandledError("whoops")
|
||||
|
||||
class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMixin, unittest.TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user