migration removed
This commit is contained in:
@@ -318,25 +318,6 @@ class TestConfigServiceBackups:
|
||||
assert len(backups) == 3 # Should only keep max_backups
|
||||
|
||||
|
||||
class TestConfigServiceMigration:
|
||||
"""Test configuration migration."""
|
||||
|
||||
def test_migration_preserves_data(self, config_service, sample_config):
|
||||
"""Test that migration preserves configuration data."""
|
||||
# Manually save config with old version
|
||||
data = sample_config.model_dump()
|
||||
data["version"] = "0.9.0" # Old version
|
||||
|
||||
with open(config_service.config_path, "w", encoding="utf-8") as f:
|
||||
json.dump(data, f)
|
||||
|
||||
# Load should migrate automatically
|
||||
loaded = config_service.load_config()
|
||||
|
||||
assert loaded.name == sample_config.name
|
||||
assert loaded.data_dir == sample_config.data_dir
|
||||
|
||||
|
||||
class TestConfigServiceSingleton:
|
||||
"""Test singleton instance management."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user