Rebrand sexp → sx across web platform (173 files)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11m37s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11m37s
Rename all sexp directories, files, identifiers, and references to sx. artdag/ excluded (separate media processing DSL). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
32
orders/tests/test_sx_helpers.py
Normal file
32
orders/tests/test_sx_helpers.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""Unit tests for orders sx component helpers."""
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from orders.sx.sx_components import _status_pill_cls
|
||||
|
||||
|
||||
class TestStatusPillCls:
|
||||
def test_paid(self):
|
||||
result = _status_pill_cls("paid")
|
||||
assert "emerald" in result
|
||||
|
||||
def test_Paid_uppercase(self):
|
||||
result = _status_pill_cls("Paid")
|
||||
assert "emerald" in result
|
||||
|
||||
def test_failed(self):
|
||||
result = _status_pill_cls("failed")
|
||||
assert "rose" in result
|
||||
|
||||
def test_cancelled(self):
|
||||
result = _status_pill_cls("cancelled")
|
||||
assert "rose" in result
|
||||
|
||||
def test_pending(self):
|
||||
result = _status_pill_cls("pending")
|
||||
assert "stone" in result
|
||||
|
||||
def test_unknown(self):
|
||||
result = _status_pill_cls("refunded")
|
||||
assert "stone" in result
|
||||
Reference in New Issue
Block a user