Download chatbot/model_servers/llamacpp_python/tests/test_alive.py from jaothan/podman: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/jaothan/podman/resolve/main/chatbot/model_servers/llamacpp_python/tests/test_alive.py
- Command line
-
hf download hf://spaces/jaothan/podman/chatbot/model_servers/llamacpp_python/tests/test_alive.py
-
curl -L -o test_alive.py https://huggingface.co/spaces/jaothan/podman/resolve/main/chatbot/model_servers/llamacpp_python/tests/test_alive.py
540 Bytes
| import pytest_container | |
| from .conftest import MS | |
| import tenacity | |
| import os | |
| CONTAINER_IMAGES = [MS] | |
| def test_etc_os_release_present(auto_container: pytest_container.container.ContainerData): | |
| assert auto_container.connection.file("/etc/os-release").exists | |
| def test_alive(auto_container: pytest_container.container.ContainerData, host): | |
| host.run_expect([0],f"curl http://localhost:{auto_container.forwarded_ports[0].host_port}",).stdout.strip() | |