@@ -206,8 +206,6 @@ def test_ensure_directories_from_config(config_manager, tmp_path):
206206 "config_version" : "1.0.0" ,
207207 "max_concurrent_downloads" : 5 ,
208208 "max_backup" : 1 ,
209- "batch_mode" : True ,
210- "locale" : "en_US" ,
211209 "log_level" : "INFO" ,
212210 "network" : {"retry_attempts" : 3 , "timeout_seconds" : 10 },
213211 "directory" : dirs ,
@@ -288,7 +286,6 @@ def test_comment_stripping_configparser(config_manager):
288286 """Test that CommentAwareConfigParser correctly strips inline comments."""
289287 # Create a config file with inline comments
290288 config_content = """[DEFAULT]
291- batch_mode = true # Non-interactive mode
292289
293290[directory]
294291logs = /test/logs # Log files directory
@@ -305,7 +302,6 @@ def test_comment_stripping_configparser(config_manager):
305302 parser .read (test_config_file )
306303
307304 # Verify that comments are stripped from values
308- assert parser .get ("DEFAULT" , "batch_mode" ) == "true"
309305 assert parser .get ("directory" , "logs" ) == "/test/logs"
310306 assert parser .get ("directory" , "cache" ) == "/test/cache"
311307 assert parser .get ("directory" , "tmp" ) == "/test/tmp"
@@ -369,7 +365,6 @@ def test_global_config_manager(config_dir):
369365 raw_config = ConfigParser ()
370366 raw_config .add_section ("settings" )
371367 raw_config .set ("settings" , "max_backup" , "3" )
372- raw_config .set ("settings" , "locale" , "en_US" )
373368 converted = global_manager ._convert_to_global_config (raw_config )
374369 assert "directory" in converted
375370 assert "network" in converted
@@ -580,7 +575,7 @@ def test_config_manager_facade_integration(config_dir):
580575 assert isinstance (default_config , dict )
581576
582577 # Test the global config manager conversion method by creating a proper config dict
583- test_config = {"max_backup" : "2" , "locale" : "en_US" , " directory" : {}}
578+ test_config = {"max_backup" : "2" , "directory" : {}}
584579 converted_config = (
585580 config_manager .global_config_manager ._convert_to_global_config (
586581 test_config
@@ -661,7 +656,6 @@ def test_merge_missing_fields(config_dir):
661656 # Start with minimal config using proper ConfigParser syntax
662657 user_config .read_string ("""[DEFAULT]
663658config_version = 1.0.0
664- locale = en_US
665659""" )
666660
667661 defaults = manager .get_default_global_config ()
@@ -740,7 +734,6 @@ def test_configuration_migration_integration(config_dir):
740734 # Create old configuration file missing some fields
741735 old_config_content = """[DEFAULT]
742736config_version = 1.0.0
743- locale = fr_FR
744737max_backup = 3
745738
746739[network]
@@ -756,7 +749,6 @@ def test_configuration_migration_integration(config_dir):
756749
757750 # Verify configuration was migrated
758751 assert config ["config_version" ] == "1.0.2" # Should be updated
759- assert config ["locale" ] == "fr_FR" # User value preserved
760752 assert config ["max_backup" ] == 3 # User value preserved
761753 assert config ["network" ]["retry_attempts" ] == 5 # User value preserved
762754
@@ -791,7 +783,6 @@ def mock_validate_failure(config):
791783
792784 old_config_content = """[DEFAULT]
793785config_version = 1.0.0
794- locale = test_locale
795786"""
796787 manager .directory_manager .settings_file .write_text (old_config_content )
797788
@@ -817,7 +808,6 @@ def test_migration_with_new_config_file(config_dir):
817808
818809 # Should create default configuration
819810 assert config ["config_version" ] == "1.0.2"
820- assert config ["locale" ] == "en_US"
821811 assert manager .directory_manager .settings_file .exists ()
822812
823813
@@ -827,30 +817,28 @@ def test_migration_no_changes_needed(config_dir):
827817
828818 # Create current configuration file with all required fields
829819 complete_config_content = """[DEFAULT]
830- config_version = 1.0.2
831- max_concurrent_downloads = 5
832- max_backup = 1
833- batch_mode = true
834- locale = en_US
835- log_level = INFO
836- console_log_level = WARNING
837-
838- [network]
839- retry_attempts = 3
840- timeout_seconds = 10
841-
842- [directory]
843- repo = /tmp/test-repo
844- package = /tmp/test-package
845- download = /tmp/downloads
846- storage = /tmp/storage
847- backup = /tmp/backup
848- icon = /tmp/icons
849- settings = /tmp/settings
850- logs = /tmp/logs
851- cache = /tmp/cache
852- tmp = /tmp/tmp
853- """
820+ config_version = 1.0.2
821+ max_concurrent_downloads = 5
822+ max_backup = 1
823+ log_level = INFO
824+ console_log_level = WARNING
825+
826+ [network]
827+ retry_attempts = 3
828+ timeout_seconds = 10
829+
830+ [directory]
831+ repo = /tmp/test-repo
832+ package = /tmp/test-package
833+ download = /tmp/downloads
834+ storage = /tmp/storage
835+ backup = /tmp/backup
836+ icon = /tmp/icons
837+ settings = /tmp/settings
838+ logs = /tmp/logs
839+ cache = /tmp/cache
840+ tmp = /tmp/tmp
841+ """
854842
855843 manager .directory_manager .settings_file .write_text (complete_config_content )
856844
@@ -915,7 +903,6 @@ def test_comment_stripping_functionality(config_dir, tmp_path):
915903 config_content = """[DEFAULT]
916904max_concurrent_downloads = 10 # Max simultaneous downloads
917905max_backup = 3 # Number of backup copies to keep
918- batch_mode = false # Non-interactive mode
919906
920907[network]
921908retry_attempts = 5 # Download retry attempts
@@ -932,7 +919,6 @@ def test_comment_stripping_functionality(config_dir, tmp_path):
932919
933920 assert config ["max_concurrent_downloads" ] == 10
934921 assert config ["max_backup" ] == 3
935- assert config ["batch_mode" ] is False
936922 assert config ["network" ]["retry_attempts" ] == 5
937923 assert config ["network" ]["timeout_seconds" ] == 30
938924 assert str (config ["directory" ]["download" ]) == "/tmp/downloads"
0 commit comments