syncmaster7 / test_servers.py
aseelflihan's picture
Initial commit without node_modules
6609c06
raw
history blame contribute delete
445 Bytes
import requests
print('πŸ§ͺ Testing servers...')
try:
r1 = requests.get('http://localhost:5050', timeout=5)
print(f'βœ… Streamlit: OK - {r1.status_code}')
except Exception as e:
print(f'❌ Streamlit: FAILED - {e}')
try:
r2 = requests.get('http://localhost:5001/record', timeout=5)
print(f'βœ… Recorder: OK - {r2.status_code}')
except Exception as e:
print(f'❌ Recorder: FAILED - {e}')
print('🏁 Test completed')