summaryrefslogtreecommitdiff
path: root/test/test_xhtml.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-26 12:42:03 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitef772d8b2aaba697549b63173de9e0291691d11c (patch)
tree38b9aa63f667ad4bc784f26a4f2855daf2d39904 /test/test_xhtml.py
parent84afe4938dfa40aff388e48c1c0b159469656839 (diff)
downloadpoezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.gz
poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.bz2
poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.xz
poezio-ef772d8b2aaba697549b63173de9e0291691d11c.zip
fix: failing tests
Diffstat (limited to 'test/test_xhtml.py')
-rw-r--r--test/test_xhtml.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_xhtml.py b/test/test_xhtml.py
index 472991c6..333a10c3 100644
--- a/test/test_xhtml.py
+++ b/test/test_xhtml.py
@@ -8,11 +8,15 @@ import poezio.xhtml
from poezio.xhtml import (poezio_colors_to_html, xhtml_to_poezio_colors,
_parse_css as parse_css, clean_text)
-class ConfigShim(object):
+
+class ConfigShim:
def __init__(self):
self.value = True
def get(self, *args, **kwargs):
return self.value
+ def getbool(self, *args, **kwargs):
+ return self.value
+
config = ConfigShim()
poezio.xhtml.config = config