mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 11:25:08 +00:00
docs: strip non-essential comments, fold key facts into docstrings
This commit is contained in:
@@ -21,9 +21,6 @@ from unshackle.core.api.errors import APIError, APIErrorCode
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
|
||||
# ---------- redaction ----------
|
||||
|
||||
|
||||
def test_redact_parameters_masks_secrets_and_proxy_userinfo():
|
||||
params = {
|
||||
"service": "ATV",
|
||||
@@ -85,9 +82,6 @@ def test_to_dict_full_details_redacts_error_fields_and_parameters():
|
||||
assert d["parameters"]["credential"] == "***"
|
||||
|
||||
|
||||
# ---------- gates ----------
|
||||
|
||||
|
||||
class _PastGate(Exception):
|
||||
"""Raised by the stubbed Services.load to prove a request got past the gate into the try block."""
|
||||
|
||||
@@ -140,9 +134,6 @@ async def test_credential_allowed_when_enabled(stub_handler):
|
||||
assert isinstance(resp, web.Response)
|
||||
|
||||
|
||||
# ---------- range validation ----------
|
||||
|
||||
|
||||
def test_range_validation_accepts_hdr10p_and_alias():
|
||||
# canonical "HDR10P" and back-compat "HDR10+" both pass; mixed casing too
|
||||
assert handlers.validate_download_parameters({"range": ["HDR10P", "DV", "SDR"]}) is None
|
||||
|
||||
Reference in New Issue
Block a user