From 1839d385ca2de129f4c81101ac2d29d4a1527302 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 22 Jun 2026 22:54:31 +0200 Subject: [PATCH] make test more tolerant --- src/backend/InvenTree/plugin/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/plugin/installer.py b/src/backend/InvenTree/plugin/installer.py index f01e74c52e..bba8603080 100644 --- a/src/backend/InvenTree/plugin/installer.py +++ b/src/backend/InvenTree/plugin/installer.py @@ -40,7 +40,7 @@ def pip_command(*args) -> str: ret = subprocess.check_output( command, cwd=settings.BASE_DIR.parent, stderr=subprocess.STDOUT ).decode('utf-8') - if ret.startswith('No module named pip'): + if 'No module named pip' in ret: raise ValidationError(_('Pip is not installed in the current environment')) return ret