mirror of
https://github.com/mvt-project/mvt.git
synced 2026-09-03 08:30:51 +02:00
fix(ios): preserve complete artifact records
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user