Spaces:
Sleeping
Sleeping
Download tests/test_server_runtime.py from arifsoul/chatbot_rag: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/arifsoul/chatbot_rag/resolve/main/tests/test_server_runtime.py
- Command line
-
hf download hf://spaces/arifsoul/chatbot_rag/tests/test_server_runtime.py
-
curl -L -o test_server_runtime.py https://huggingface.co/spaces/arifsoul/chatbot_rag/resolve/main/tests/test_server_runtime.py
289 Bytes
| import unittest | |
| from backend.runtime import resolve_bind_port | |
| class TestServerRuntime(unittest.TestCase): | |
| def test_uses_requested_port_when_available(self): | |
| port = resolve_bind_port(8765) | |
| self.assertEqual(port, 8765) | |
| if __name__ == "__main__": | |
| unittest.main() | |