mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-26 16:11:08 +00:00
Remove WebRenderingMixin from WebResultsRendering
This commit is contained in:
parent
02cd42c130
commit
c44a167a66
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import re
|
||||||
import json
|
import json
|
||||||
import os.path, shutil
|
import os.path, shutil
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
@ -41,7 +42,12 @@ class TestRequest(Request):
|
|||||||
self.args = args or {}
|
self.args = args or {}
|
||||||
self.fields = fields or {}
|
self.fields = fields or {}
|
||||||
|
|
||||||
class WebResultsRendering(unittest.TestCase, WebRenderingMixin):
|
class WebResultsRendering(unittest.TestCase):
|
||||||
|
|
||||||
|
def remove_tags(self, s):
|
||||||
|
s = re.sub(r'<[^>]*>', ' ', s)
|
||||||
|
s = re.sub(r'\s+', ' ', s)
|
||||||
|
return s
|
||||||
|
|
||||||
def create_fake_client(self):
|
def create_fake_client(self):
|
||||||
sb = StorageFarmBroker(True, None, EMPTY_CLIENT_CONFIG)
|
sb = StorageFarmBroker(True, None, EMPTY_CLIENT_CONFIG)
|
||||||
|
Loading…
Reference in New Issue
Block a user