GET /dict/info: status=active|closed|all (по умолчанию active), close_date_start/end; закрытые сортируются по дате закрытия по убыванию. Удалён неиспользуемый close_date_is_null и мёртвый return в VSPRepository.get_list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
284 B
Python
9 lines
284 B
Python
import pytest
|
|
|
|
from src.services.vsp_service import vsp_status_to_is_active
|
|
|
|
|
|
@pytest.mark.parametrize("status, expected", [("active", True), ("closed", False), ("all", None)])
|
|
def test_vsp_status_to_is_active(status, expected):
|
|
assert vsp_status_to_is_active(status) is expected
|