Spaces:
Running
Running
Download tests/cli/test_cli_ownership.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/cli/test_cli_ownership.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/tests/cli/test_cli_ownership.py
-
curl -L -o test_cli_ownership.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/cli/test_cli_ownership.py
686 Bytes
| from pathlib import Path | |
| from free_claude_code.cli.managed.session import ManagedClaudeSession | |
| def test_cli_session_owns_typed_runner_config(tmp_path: Path) -> None: | |
| session = ManagedClaudeSession( | |
| workspace_path=str(tmp_path), | |
| proxy_root_url="http://127.0.0.1:8082", | |
| allowed_dirs=[str(tmp_path)], | |
| claude_bin="claude-test", | |
| auth_token="freecc", | |
| ) | |
| assert session.config.workspace_path == str(tmp_path) | |
| assert session.config.proxy_root_url == "http://127.0.0.1:8082" | |
| assert session.config.allowed_dirs == [str(tmp_path)] | |
| assert session.config.claude_bin == "claude-test" | |
| assert session.config.auth_token == "freecc" | |