mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 23:24:15 +02:00
M3 namespace migration: complete Phase B, partial Phase D, docs and tests
- 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
This commit is contained in:
@@ -4,7 +4,7 @@ from unittest import TestCase
|
||||
from unittest.mock import patch, Mock
|
||||
|
||||
|
||||
from bauh.gems.arch import pacman
|
||||
from bearhub.gems.arch import pacman
|
||||
|
||||
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
@@ -29,7 +29,7 @@ class PacmanTest(TestCase):
|
||||
self.assertIsNotNone(ignored)
|
||||
self.assertEqual(0, len(ignored))
|
||||
|
||||
@patch("bauh.gems.arch.pacman.run_cmd", return_value="""
|
||||
@patch("bearhub.gems.arch.pacman.run_cmd", return_value="""
|
||||
Name : package-test
|
||||
Version : 3.4.4-1
|
||||
Description : Test
|
||||
@@ -42,7 +42,7 @@ Required By : None
|
||||
run_cmd.assert_called_once_with('pacman -Qi package-test')
|
||||
self.assertEqual({'package-test': {}}, res)
|
||||
|
||||
@patch("bauh.gems.arch.pacman.run_cmd", return_value="""
|
||||
@patch("bearhub.gems.arch.pacman.run_cmd", return_value="""
|
||||
Name : package-test
|
||||
Version : 3.4.4-1
|
||||
Description : Test
|
||||
@@ -55,7 +55,7 @@ Required By : None
|
||||
run_cmd.assert_called_once_with('pacman -Qi package-test')
|
||||
self.assertEqual({'package-test': {'lib32-vulkan-icd-loader': 'Vulkan support'}}, res)
|
||||
|
||||
@patch("bauh.gems.arch.pacman.run_cmd", return_value="""
|
||||
@patch("bearhub.gems.arch.pacman.run_cmd", return_value="""
|
||||
Name : package-test
|
||||
Version : 3.4.4-1
|
||||
Description : Test
|
||||
@@ -68,7 +68,7 @@ Required By : None
|
||||
run_cmd.assert_called_once_with('pacman -Qi package-test')
|
||||
self.assertEqual({'package-test': {'pipewire-alsa': ''}}, res)
|
||||
|
||||
@patch("bauh.gems.arch.pacman.run_cmd", return_value="""
|
||||
@patch("bearhub.gems.arch.pacman.run_cmd", return_value="""
|
||||
Name : package-test
|
||||
Version : 3.4.4-1
|
||||
Description : Test
|
||||
@@ -81,7 +81,7 @@ Required By : None
|
||||
run_cmd.assert_called_once_with('pacman -Qi package-test')
|
||||
self.assertEqual({'package-test': {}}, res)
|
||||
|
||||
@patch("bauh.gems.arch.pacman.run_cmd", return_value="""
|
||||
@patch("bearhub.gems.arch.pacman.run_cmd", return_value="""
|
||||
Name : package-test
|
||||
Version : 3.4.4-1
|
||||
Description : Test
|
||||
|
||||
Reference in New Issue
Block a user