mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
- Native runtime under bearhub/ (api, commons, gems, view/util, view/core, view/qt) - bauh/ compatibility re-export shims for legacy imports - Phase D: canonical __version__/__app_name__ in bearhub/__init__.py; pyproject.toml and setup.py point at bearhub package - Native gem loader at bearhub/view/core/gems.py - Namespace compatibility tests (159 tests passing) - Documentation: CHANGELOG [Unreleased], NAMESPACE_MIGRATION, ROADMAP, README, CONTRIBUTING, docs/qt6-migration.md, packaging/aur/README.md
22 lines
854 B
Python
22 lines
854 B
Python
from unittest import TestCase
|
|
|
|
from bearhub.gems.flatpak.controller import FlatpakManager
|
|
from bearhub.view.core.gems import _discover_gem_dirs, _import_controller_module
|
|
|
|
|
|
class TestFlatpakNamespace(TestCase):
|
|
|
|
def test_bauh_compat_import(self):
|
|
from bauh.gems.flatpak.model import FlatpakApplication
|
|
|
|
self.assertTrue(issubclass(FlatpakApplication, object))
|
|
|
|
def test_flatpak_discovered_under_bearhub(self):
|
|
gem_dirs = dict(_discover_gem_dirs())
|
|
self.assertIn('flatpak', gem_dirs)
|
|
self.assertIn('bearhub/gems/flatpak', gem_dirs['flatpak'].replace('\\', '/'))
|
|
|
|
def test_controller_import_prefers_bearhub(self):
|
|
module = _import_controller_module('flatpak')
|
|
self.assertEqual(module.__name__, 'bearhub.gems.flatpak.controller')
|
|
self.assertIs(module.FlatpakManager, FlatpakManager) |