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_v108.py at main · burncode/burncode Expand file tree/ Copy pathtest_v108.pyMore file actions 40 lines (40 loc) · 1.78 KB / Copy pathtest_v108.pyFile metadata and controls40 lines (40 loc) · 1.78 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 # Author: burncode # Email: [email protected] # Copyright (c) 2026 burncode # License: MIT import unittest, sys, copy from pathlib import Path ROOT=Path(__file__).resolve().parents[1] sys.path.insert(0,str(ROOT)) import build class V108Tests(unittest.TestCase): def setUp(self): self.cfg=build.validate(build.read_json(ROOT/'config.json'),ROOT/'config.json') def test_cat_walk_svg(self): s=build.render(self.cfg,'mono') self.assertIn('id="pixel-companion"',s) self.assertIn('animateTransform',s) def test_cat_static_fallback(self): c=copy.deepcopy(self.cfg);c['companion']['animation']='static' s=build.render(c,'mono') self.assertIn('id="pixel-companion"',s) self.assertNotIn('animateTransform',s) def test_cat_disabled(self): c=copy.deepcopy(self.cfg);c['header_cat']=False self.assertNotIn('id="pixel-companion"',build.render(c,'mono')) def test_cat_config_validation(self): c=copy.deepcopy(self.cfg);c['cat']={'motion':'fly','duration':1} with self.assertRaises(build.ConfigError):build.validate(c,ROOT/'config.json') def test_readme_links_visible(self): c=copy.deepcopy(self.cfg);c['projects'][0]['url']='https://github.com/burncode/sample' for item in c['layout']: if item['type']=='social':item['enabled']=True text=build.make_readme(c) self.assertIn('project-1.svg',text) self.assertIn('sample',text) self.assertIn('connect-1.svg',text) def test_theme_modes(self): self.assertEqual(build.load_theme('mono')['mode'],'light') self.assertEqual(build.load_theme('graphite')['mode'],'dark') |
| 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. |