GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — burncode/tests/test_v111.py at main · burncode/burncode Expand file tree/ Copy pathtest_v111.pyMore file actions 26 lines (26 loc) · 1.38 KB / Copy pathtest_v111.pyFile metadata and controls26 lines (26 loc) · 1.38 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 # Author: burncode # Email: [email protected] # Copyright (c) 2026 burncode # License: MIT """Showcase refresh and optional languages widget.""" import copy,sys,unittest,xml.etree.ElementTree as ET from pathlib import Path ROOT=Path(__file__).resolve().parents[1] sys.path.insert(0,str(ROOT)) import build class V111Tests(unittest.TestCase): @classmethod def setUpClass(cls):cls.cfg=build.validate(build.read_json(ROOT/'config.json'),ROOT/'config.json') def test_showcase_default(self): self.assertEqual(self.cfg['layout_mode'],'showcase') self.assertIn('viewBox="0 0 1100 ',build.render(self.cfg,'mono')) def test_languages_disabled(self): c=copy.deepcopy(self.cfg);c['widgets']['languages']['enabled']=False self.assertNotIn('/ languages',build.render(c,'mono')) def test_languages_enabled(self): c=copy.deepcopy(self.cfg);c['widgets']['languages']={'enabled':True,'source':'manual','items':[{'name':'Python','value':60},{'name':'Ruby','value':40}]} c=build.validate(c,ROOT/'config.json');s=build.render(c,'mono') self.assertIn('Python 60%',s);self.assertIn('Ruby 40%',s);ET.fromstring(s) def test_languages_invalid_empty(self): c=copy.deepcopy(self.cfg);c['widgets']['languages'].update({'enabled':True,'source':'manual','items':[]}) with self.assertRaises(build.ConfigError):build.validate(c,ROOT/'config.json') |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |