Spaces:
Sleeping
Sleeping
Download tests/test_analytics.py from findEthics/Atlas: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/findEthics/Atlas/resolve/main/tests/test_analytics.py
- Command line
-
hf download hf://spaces/findEthics/Atlas/tests/test_analytics.py
-
curl -L -o test_analytics.py https://huggingface.co/spaces/findEthics/Atlas/resolve/main/tests/test_analytics.py
544 Bytes
| #!/usr/bin/env python3 | |
| """ | |
| Test analytics functions directly | |
| """ | |
| import asyncio | |
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| async def test_analytics(): | |
| try: | |
| from analytics.dashboard import get_basic_stats | |
| print("Testing get_basic_stats...") | |
| stats = await get_basic_stats() | |
| print(f"Stats result: {stats}") | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| import traceback | |
| traceback.print_exc() | |
| if __name__ == "__main__": | |
| asyncio.run(test_analytics()) |