from utils import config def test_path_config(): pc = config.PathConfig(work_dir='/tmp', web_folder='/web') assert pc.work_dir == '/tmp' assert pc.web_folder == '/web' def test_gallery_config(): gc = config.GalleryConfig( plot_root='plots', png_dpi=150, backup_folder='backups') assert gc.plot_root == 'plots' assert gc.png_dpi == 150 assert gc.backup_folder == 'backups' def test_ui_config(): ui = config.UIConfig(max_recent_plots=10, search_debounce_ms=200) assert ui.max_recent_plots == 10 assert ui.search_debounce_ms == 200 def test_metadata_config_defaults(): mc = config.MetadataConfig() assert mc.cache_enabled is True assert mc.inherit_from_parent is True