GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — burncode/tests/test_fetch_logo_selection.py at main · burncode/burncode

Expand file tree

/

test_fetch_logo_selection.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (20 loc) · 858 Bytes
/

test_fetch_logo_selection.py

Copy path

File metadata and controls

21 lines (20 loc) · 858 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Author: burncode
# Email: [email protected]
# Copyright (c) 2026 burncode
# License: MIT
import unittest
from profilegen.widgets.fastfetch import available_logos, _logo_lines
class TestFetchLogoSelection(unittest.TestCase):
def test_all_templates_discovered(self):
self.assertIn('arch', available_logos())
self.assertIn('nixos', available_logos())
self.assertIn('windows11', available_logos())
def test_exact_selection(self):
self.assertNotEqual(_logo_lines('arch'), _logo_lines('windows11'))
self.assertNotEqual(_logo_lines('nixos'), _logo_lines('arch'))
def test_unknown_not_silently_fallback(self):
with self.assertRaises(ValueError):
_logo_lines('nonexistent-os')
def test_invalid_name(self):
with self.assertRaises(ValueError):
_logo_lines('../arch')
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.