feat: release v1.1.2 - hardened IP sorting with ipaddress and config sort defaults
Build and Publish Release / Build Packages and Publish (push) Successful in 10s

This commit is contained in:
soda64 committed 2026-10-03 22:18:10 +02:00
1 parent 62710d8bb7
commit 1dbbb1ce56
12 files changed
+88 -21

No files matched your search

+17
View File
@@ -63,5 +63,22 @@ destinations:
finally:
env_file.unlink()
def test_load_config_sort_defaults(self):
content = """
defaults:
sort_by: "ip"
sort_reverse: true
"""
with NamedTemporaryFile("w+", suffix=".yaml", delete=False) as f:
f.write(content)
cfg_path = Path(f.name)
try:
config = ConfigLoader.load(cfg_path)
self.assertEqual(config.sort_by, "ip")
self.assertTrue(config.sort_reverse)
finally:
cfg_path.unlink()
if __name__ == "__main__":
unittest.main()