deleted unnecesary files
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
|
||||
# Add the signage_player directory to path
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'signage_player'))
|
||||
|
||||
from get_playlists import get_server_status, set_server_offline, set_server_online
|
||||
|
||||
def test_offline():
|
||||
print("=== Testing Offline Status ===")
|
||||
|
||||
print("1. Initial status:")
|
||||
status = get_server_status()
|
||||
print(f" Online: {status['is_online']}")
|
||||
|
||||
print("2. Setting offline:")
|
||||
set_server_offline("Test - server unreachable")
|
||||
status = get_server_status()
|
||||
print(f" Online: {status['is_online']}")
|
||||
print(f" Error: {status['error_message']}")
|
||||
|
||||
print("3. Setting online:")
|
||||
set_server_online()
|
||||
status = get_server_status()
|
||||
print(f" Online: {status['is_online']}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_offline()
|
||||
Reference in New Issue
Block a user