From 190a5f119f879be9ad87eb09b218a0a909e6ac45 Mon Sep 17 00:00:00 2001 From: Janik Besendorf Date: Tue, 20 Jan 2026 14:34:40 +0100 Subject: [PATCH] Remove unused TombstoneCrashArtifact init in test --- tests/android/test_artifact_tombstones.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/android/test_artifact_tombstones.py b/tests/android/test_artifact_tombstones.py index 1ca684e..5c9a009 100644 --- a/tests/android/test_artifact_tombstones.py +++ b/tests/android/test_artifact_tombstones.py @@ -134,7 +134,6 @@ class TestTombstoneCrashArtifact: def test_tombstone_pb_empty_file(self): """Test that empty (0 bytes) tombstone files are handled gracefully.""" - tombstone_artifact = TombstoneCrashArtifact() artifact_path = "android_data/bugreport_tombstones/tombstone_empty_file.pb" file = get_artifact(artifact_path) with open(file, "rb") as f: @@ -143,11 +142,6 @@ class TestTombstoneCrashArtifact: # Verify the file is actually empty assert len(data) == 0, "Test file should be empty (0 bytes)" - file_name = os.path.basename(artifact_path) - file_timestamp = datetime.datetime(2024, 4, 1, 12, 0, 0, 0) - # Empty files should be skipped in the module (not parsed) - # So we don't call parse_protobuf here, just verify the data is empty # The actual skipping happens in the Tombstones module's run() method # This test verifies that empty data is detectable - assert len(data) == 0