Spaces:
Sleeping
Sleeping
Download tests/core/test_utils.py from marqueeH/notebooklm-mcp-cli: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/spaces/marqueeH/notebooklm-mcp-cli/resolve/main/tests/core/test_utils.py
- Command line
-
hf download hf://spaces/marqueeH/notebooklm-mcp-cli/tests/core/test_utils.py
-
curl -L -o test_utils.py https://huggingface.co/spaces/marqueeH/notebooklm-mcp-cli/resolve/main/tests/core/test_utils.py
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 | |