mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +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
20 lines
675 B
Python
20 lines
675 B
Python
from unittest import TestCase
|
|
|
|
from bearhub.view.util.cache import DefaultMemoryCacheFactory
|
|
from bearhub.view.util.resource import get_path
|
|
from bearhub.view.util.translation import I18n
|
|
|
|
|
|
class TestViewUtilNamespace(TestCase):
|
|
|
|
def test_bauh_compat_import(self):
|
|
from bauh.view.util.cache import DefaultMemoryCacheFactory as legacy_factory
|
|
|
|
self.assertIs(legacy_factory, DefaultMemoryCacheFactory)
|
|
|
|
def test_resource_prefers_bearhub_tree(self):
|
|
path = get_path('locale/about/en')
|
|
self.assertIn('bearhub/view/resources', path.replace('\\', '/'))
|
|
|
|
def test_translation_class_available(self):
|
|
self.assertTrue(callable(I18n)) |