diff --git a/test_news_manager.py b/test_news_manager.py index 9bf93814..4006c2f6 100644 --- a/test_news_manager.py +++ b/test_news_manager.py @@ -30,18 +30,12 @@ def main(): # Initialize news manager with the loaded config news_manager = NewsManager(config, display_manager) - # Test the scrolling behavior - # You can customize these parameters: - # - test_message: The message to scroll - # - scroll_speed: Pixels to move per frame (higher = faster) - # - scroll_delay: Delay between scroll updates (lower = faster) - # - max_iterations: Maximum number of iterations to run (None = run indefinitely) - news_manager.test_scroll( - test_message="This is a test of the NewsManager scrolling behavior. You can adjust the speed and delay to find the optimal settings.", - scroll_speed=2, # Adjust this to change scroll speed - scroll_delay=0.05, # Adjust this to change scroll smoothness - max_iterations=3 # Set to None to run indefinitely - ) + print("Testing news display. Press Ctrl+C to exit.") + + # Run the news display in a loop + while True: + news_manager.display_news() + time.sleep(0.05) # Small delay between updates except KeyboardInterrupt: print("\nTest interrupted by user")