mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-19 20:14:32 +00:00
fix: k8s config and silent source ingests
This commit is contained in:
1 parent
e4b06609b1
commit
cf075790ab
9 files changed
+76
-26
No files matched your search
@@ -204,7 +204,7 @@ class TestExtractZipRecursive:
|
||||
assert found, "expected nested zip to be extracted"
|
||||
|
||||
def test_nested_archives_share_one_expansion_budget(self, tmp_path):
|
||||
from application.worker import extract_zip_recursive
|
||||
from application.worker import extract_zip_recursive, ZipExtractionError
|
||||
|
||||
inner = tmp_path / "inner.zip"
|
||||
with zipfile.ZipFile(inner, "w", zipfile.ZIP_STORED) as zf:
|
||||
@@ -222,7 +222,8 @@ class TestExtractZipRecursive:
|
||||
with patch("application.worker.MAX_UNCOMPRESSED_SIZE", limit), patch(
|
||||
"application.worker.MAX_COMPRESSION_RATIO", 10_000,
|
||||
):
|
||||
extract_zip_recursive(str(outer), str(extract_to))
|
||||
with pytest.raises(ZipExtractionError):
|
||||
extract_zip_recursive(str(outer), str(extract_to))
|
||||
|
||||
assert not (extract_to / "inside.txt").exists()
|
||||
|
||||
|
||||
Reference in new issue
Block a user