Skip to content

Commit 9f84a58

Browse files
committed
Drop legacy timestamps assertions in tests
Updates `test_video_recorder.py` to stop asserting the top-level `timestamps` list in sidecar JSON fixtures. The tests now focus on schema v2 fields that remain authoritative (`frame_timestamps`, `start_time`, `end_time`, `duration_seconds`, and timestamp source metadata), aligning expectations with current sidecar output.
1 parent 358b37b commit 9f84a58

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

tests/services/test_video_recorder.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ def test_stop_writes_timestamps_sidecar_json(patch_writegear, output_path, rgb_f
233233
assert data["end_time"] == 12.0
234234
assert data["duration_seconds"] == 2.0
235235
assert data["schema_version"] == 2
236-
assert data["timestamps"] == [10.0, 12.0]
237236
assert data["timestamp_sources"]["hardware_timestamp"] is None
238237
assert data["frame_timestamps"][0]["software_timestamp"] == 10.0
239238
assert data["frame_timestamps"][1]["software_timestamp"] == 12.0
@@ -450,9 +449,6 @@ def test_stop_writes_software_only_timestamp_sidecar_json(
450449
assert data["video_file"] == output_path.name
451450
assert data["num_frames"] == 2
452451

453-
# Backward-compatible list.
454-
assert data["timestamps"] == [10.0, 12.0]
455-
456452
assert data["timestamp_sources"]["software_timestamp"]["kind"] == "software_wall_clock"
457453
assert data["timestamp_sources"]["hardware_timestamp"] is None
458454

@@ -503,7 +499,6 @@ def test_stop_writes_hardware_timestamp_metadata_sidecar_json(
503499
assert data["num_frames"] == 1
504500

505501
# Backward-compatible software timestamp list.
506-
assert data["timestamps"] == [10.0]
507502
assert data["start_time"] == 10.0
508503
assert data["end_time"] == 10.0
509504
assert data["duration_seconds"] == 0.0

0 commit comments

Comments
 (0)