update tests
This commit is contained in:
		
							parent
							
								
									0ced020c67
								
							
						
					
					
						commit
						3375377371
					
				| @ -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()} | ||||
|         ) | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -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, | ||||
|         } | ||||
|  | ||||
| @ -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} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ed
						ed