Skip to content

Commit 799cac6

Browse files
authored
fix plugin installer hard coded version (#4015)
Signed-off-by: Patrick St-Louis <patrick.st-louis@opsecid.ca>
1 parent e78e8e9 commit 799cac6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

acapy_agent/utils/tests/test_plugin_installer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from unittest import TestCase
66
from unittest.mock import MagicMock, Mock, mock_open, patch
77

8+
from ...version import __version__
89
from ..plugin_installer import (
910
PluginInstaller,
1011
_detect_package_manager,
@@ -225,12 +226,11 @@ def test_init_with_version(self):
225226
def test_get_plugin_source_default_version(self):
226227
"""Test plugin source URL construction with default version."""
227228
installer = PluginInstaller()
228-
with patch("acapy_agent.utils.plugin_installer.__version__", "1.4.0"):
229-
result = installer._get_plugin_source("webvh")
230-
self.assertIn(
231-
"git+https://github.com/openwallet-foundation/acapy-plugins", result
232-
)
233-
self.assertIn("@1.4.0#subdirectory=webvh", result)
229+
result = installer._get_plugin_source("webvh")
230+
self.assertIn(
231+
"git+https://github.com/openwallet-foundation/acapy-plugins", result
232+
)
233+
self.assertIn(f"@{__version__}#subdirectory=webvh", result)
234234

235235
def test_get_plugin_source_custom_version(self):
236236
"""Test plugin source URL construction with custom version."""

0 commit comments

Comments
 (0)