deleted unnecesary files

This commit is contained in:
2025-09-10 14:30:51 +03:00
parent 26fc946a65
commit 26a9db889f
13 changed files with 8411 additions and 802 deletions

View File

@@ -1,43 +0,0 @@
#!/usr/bin/env python3
"""Test script to verify the complete offline notification system"""
import sys
import os
import time
# Add the signage_player directory to the path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'signage_player'))
def test_offline_notification():
"""Test the offline notification display"""
print("[TEST] Testing offline notification system...")
# Import after adding to path
from get_playlists import get_last_playlist_update_time, get_server_status, set_server_offline, set_server_online
print(f"[TEST] Current server status: {get_server_status()}")
# Test getting playlist update time
last_update = get_last_playlist_update_time()
if last_update:
print(f"[TEST] Last playlist update: {last_update.strftime('%Y-%m-%d %H:%M:%S')}")
else:
print("[TEST] No playlist file found")
# Test server offline mode
print("\n[TEST] Setting server offline...")
set_server_offline("Test - simulated network failure")
status = get_server_status()
print(f"[TEST] Server status after offline: {status}")
# Test server online mode
time.sleep(1)
print("\n[TEST] Setting server online...")
set_server_online()
status = get_server_status()
print(f"[TEST] Server status after online: {status}")
print("\n[TEST] Offline notification system test completed!")
if __name__ == "__main__":
test_offline_notification()