Spaces:
Running
Running
Download test/services/test_controller_ping.py from kodnuke/youtube-bot: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/kodnuke/youtube-bot/resolve/main/test/services/test_controller_ping.py
- Command line
-
hf download hf://spaces/kodnuke/youtube-bot/test/services/test_controller_ping.py
-
curl -L -o test_controller_ping.py https://huggingface.co/spaces/kodnuke/youtube-bot/resolve/main/test/services/test_controller_ping.py
280 Bytes
| import unittest | |
| from app.controllers import ping as ping_controller | |
| class TestPingController(unittest.TestCase): | |
| def test_ping(self): | |
| response = ping_controller.ping(None) | |
| self.assertEqual(response, "pong") | |
| if __name__ == "__main__": | |
| unittest.main() | |