fix(ios): preserve complete artifact records

This commit is contained in:
Janik Besendorf
2026-09-02 20:36:23 +02:00
parent a463e8509c
commit a02c7d8db0
20 changed files with 529 additions and 335 deletions
+13
View File
@@ -18,6 +18,7 @@ from mvt.common.utils import (
generate_hashes_from_path,
get_sha256_from_file_path,
init_logging,
sanitize_json_data,
set_verbose_logging,
)
@@ -108,6 +109,18 @@ class TestCustomJSONEncoder:
)
def test_sanitize_json_data_preserves_nested_binary_and_dates():
value = {
"blob": b"\x00\xff",
"nested": [datetime(2023, 11, 13, 12, 21, 49, 727467)],
}
assert sanitize_json_data(value) == {
"blob": "AP8=",
"nested": ["2023-11-13 12:21:49.727467"],
}
class TestInitLogging:
def test__init_logging_is_idempotent(self):
# Loaded module packages may import an MVT CLI module, which calls