Skip to content

Commit 5c8ed34

Browse files
committed
skip test
1 parent 2c5fef9 commit 5c8ed34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/_runtime/packages/test_package_managers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import pytest
88

9+
from marimo._dependencies.dependencies import DependencyManager
910
from marimo._runtime.packages.package_manager import LogCallback
1011
from marimo._runtime.packages.package_managers import create_package_manager
1112
from marimo._runtime.packages.pypi_package_manager import (
@@ -536,6 +537,9 @@ def test_package_manager_run_manager_not_installed() -> None:
536537
# Encoding tests for Windows compatibility
537538

538539

540+
@pytest.mark.skipif(
541+
not DependencyManager.which("poetry"), reason="poetry not installed"
542+
)
539543
@patch("subprocess.run")
540544
def test_poetry_list_packages_uses_utf8_encoding(mock_run: MagicMock):
541545
"""Test that poetry list uses UTF-8 encoding to handle non-ASCII characters"""
@@ -556,6 +560,9 @@ def test_poetry_list_packages_uses_utf8_encoding(mock_run: MagicMock):
556560
assert call_kwargs.get("text") is True
557561

558562

563+
@pytest.mark.skipif(
564+
not DependencyManager.which("pixi"), reason="pixi not installed"
565+
)
559566
@patch("subprocess.run")
560567
def test_pixi_list_packages_uses_utf8_encoding(mock_run: MagicMock):
561568
"""Test that pixi list uses UTF-8 encoding to handle non-ASCII characters"""

0 commit comments

Comments
 (0)