Skip to content

Commit a3b5c4c

Browse files
committed
CLI-15: Add design markers to design system tests
- Add pytestmark = pytest.mark.design to design test files - Ensure proper categorization for design system tests - Files: test_components, test_themes, test_tokens
1 parent f3efa2f commit a3b5c4c

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

tests/integration/test_design_system.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
import tempfile
55
from pathlib import Path
66

7+
import pytest
78
import yaml
89

9-
from cli_patterns.config.theme_loader import (
10-
load_theme_from_yaml,
11-
)
10+
from cli_patterns.config.theme_loader import load_theme_from_yaml
1211
from cli_patterns.ui.design.boxes import BOX_STYLES, BoxStyle
1312
from cli_patterns.ui.design.components import Output, Panel, ProgressBar, Prompt
1413
from cli_patterns.ui.design.icons import get_icon_set
@@ -22,6 +21,8 @@
2221
StatusToken,
2322
)
2423

24+
pytestmark = pytest.mark.design
25+
2526

2627
class TestDesignSystemIntegration:
2728
"""Test that all design system components work together."""

tests/unit/ui/design/test_components.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Tests for UI components and design elements."""
22

3+
import pytest
4+
35
from cli_patterns.ui.design.boxes import (
46
ASCII,
57
BOX_STYLES,
@@ -23,6 +25,8 @@
2325
StatusToken,
2426
)
2527

28+
pytestmark = pytest.mark.design
29+
2630

2731
class TestPanelComponent:
2832
"""Tests for Panel component default values."""

tests/unit/ui/design/test_themes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
StatusToken,
2626
)
2727

28+
pytestmark = pytest.mark.design
29+
2830

2931
class TestTheme:
3032
"""Tests for the base Theme class."""

tests/unit/ui/design/test_tokens.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
StatusToken,
1414
)
1515

16+
pytestmark = pytest.mark.design
17+
1618

1719
class TestCategoryToken:
1820
"""Test CategoryToken enum."""

0 commit comments

Comments
 (0)