You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/tests/logic/test_sonarr.py

17 lines
472 B

import pytest
from app.trash_error import TrashError
from app.logic import sonarr as logic
from app import cmd
from tests.mock_logger import MockLogger
class TestSonarrLogic:
logger = MockLogger()
@staticmethod
def test_throw_without_required_arguments():
with pytest.raises(TrashError):
args = cmd.setup_and_parse_args(['profile', 'sonarr:anime', '--base-uri', 'value'])
logic.process_profile(args, TestSonarrLogic.logger)