Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test: add PB, EB, and negative PB coverage for human_size() (#3597)

LearningCircuit3675d36e3004
diff --git a/tests/web/routes/test_backup_status_api.py b/tests/web/routes/test_backup_status_api.py
index 486b0983f7..721cb8945b 100644
--- a/tests/web/routes/test_backup_status_api.py
+++ b/tests/web/routes/test_backup_status_api.py
@@ -28,6 +28,18 @@ class TestHumanSize:
result = human_size(1_099_511_627_776)
assert result == "1.0 TB"
+ def test_petabytes(self):
+ result = human_size(1_125_899_906_842_624) # 1 PB = 1024^5
+ assert result == "1.0 PB"
+
+ def test_exabytes_fallback(self):
+ result = human_size(1_152_921_504_606_846_976) # 1 EB = 1024^6
+ assert result == "1.0 EB"
+
+ def test_negative_petabytes(self):
+ result = human_size(-1_125_899_906_842_624) # -1 PB
+ assert result == "-1.0 PB"
+
class TestBackupStatusResponseShape:
"""Tests that verify backup status response structure using real filesystem."""