"""Test video_type logic.""" from typing import Any import pytest from pytest_mock import MockerFixture from video.logic import video_type as video_type_logic from video.models.sql.classes import video_type @pytest.mark.parametrize( ("test_description", "expected_response"), [ ( "test get all video types", [ { "video_type_id": 1, "video_type": "Official Music Video", "video_asset_type": "Music Video", }, { "video_type_id": 2, "video_type": "Lyric Music Video", "video_asset_type": "Music Video", }, { "video_type_id": 4, "video_type": "Behind the Scenes", "video_asset_type": "Web Video", }, { "video_type_id": 5, "video_type": "Promo", "video_asset_type": "Web Video", }, ], ), ], ) def test_get_all_video_types( mocker: MockerFixture, test_description: Any, expected_response: Any ) -> None: """Test get all video type logic.""" mocker.patch.object(video_type, "get_all", return_value=expected_response) get_all_video_types_response = video_type_logic.get_all_video_types() assert get_all_video_types_response == expected_response