mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -4,7 +4,6 @@ from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
import click
|
||||
import pytest
|
||||
from click.core import ParameterSource
|
||||
|
||||
@@ -71,11 +70,6 @@ def test_hybrid_needs_dovi_tool(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
check_options({"range_": [Video.Range.HDR10]})
|
||||
|
||||
|
||||
def test_a_plan_error_exits_1_without_a_usage_block() -> None:
|
||||
assert PlanError("x").exit_code == 1
|
||||
assert not isinstance(PlanError("x"), click.UsageError)
|
||||
|
||||
|
||||
def test_a_plan_error_is_an_invalid_parameters_api_error() -> None:
|
||||
error = categorize_exception(PlanError("--sample and --include-sample cannot be used together."))
|
||||
assert error.error_code is APIErrorCode.INVALID_PARAMETERS
|
||||
|
||||
Reference in New Issue
Block a user