From 337537737147f3e491711c212a9a39d0392bb1d1 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 6 Nov 2021 23:27:21 +0100 Subject: [PATCH] update tests --- tests/test_httpcli.py | 3 ++- tests/test_vfs.py | 5 ++--- tests/util.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_httpcli.py b/tests/test_httpcli.py index 75e2eae0..077f363c 100644 --- a/tests/test_httpcli.py +++ b/tests/test_httpcli.py @@ -47,12 +47,13 @@ class Cfg(Namespace): mtp=[], mte="a", mth="", + textfiles="", hist=None, no_idx=None, no_hash=None, js_browser=None, css_browser=None, - **{k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()} + **{k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr no_acode".split()} ) diff --git a/tests/test_vfs.py b/tests/test_vfs.py index 7ddd728c..d9460ed9 100644 --- a/tests/test_vfs.py +++ b/tests/test_vfs.py @@ -17,7 +17,8 @@ from copyparty import util class Cfg(Namespace): def __init__(self, a=None, v=None, c=None): - ex = {k: False for k in "nw e2d e2ds e2dsa e2t e2ts e2tsr".split()} + ex = "nw e2d e2ds e2dsa e2t e2ts e2tsr no_logues no_readme no_acode" + ex = {k: False for k in ex.split()} ex2 = { "mtp": [], "mte": "a", @@ -28,8 +29,6 @@ class Cfg(Namespace): "js_browser": None, "css_browser": None, "no_voldump": True, - "no_logues": False, - "no_readme": False, "re_maxage": 0, "rproxy": 0, } diff --git a/tests/util.py b/tests/util.py index 8e1fc043..6a96197a 100644 --- a/tests/util.py +++ b/tests/util.py @@ -113,6 +113,7 @@ class VSock(object): class VHttpSrv(object): def __init__(self): self.broker = NullBroker() + self.prism = None aliases = ["splash", "browser", "browser2", "msg", "md", "mde"] self.j2 = {x: J2_FILES for x in aliases}