Spaces:
Sleeping
Sleeping
File size: 554 Bytes
7c87115 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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
|