Spaces:
Sleeping

notebooklm-mcp-cli / tests /core /test_utils.py
marqueeH's picture
Upload 121 files
7c87115 verified
Raw History Blame Contribute Delete
554 Bytes
from notebooklm_tools.core.utils import (
parse_timestamp,
extract_cookies_from_chrome_export,
RPC_NAMES,
)
def test_parse_timestamp_valid():
result = parse_timestamp([1700000000, 0])
assert result == "2023-11-14T22:13:20Z"
def test_parse_timestamp_none():
assert parse_timestamp(None) is None
def test_extract_cookies_header_string():
result = extract_cookies_from_chrome_export("name=value; other=foo")
assert result == {"name": "value", "other": "foo"}
def test_rpc_names_exists():
assert "wXbhsf" in RPC_NAMES