feat: extract date & time from tags

Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
This commit is contained in:
Konstantin Fickel 2026-01-31 17:15:01 +01:00
parent ee91b2e8db
commit d5b1541436
Signed by: kfickel
GPG key ID: A793722F9933C1A5
6 changed files with 246 additions and 22 deletions

View file

@ -1,3 +1,5 @@
from datetime import datetime
from streamer.localize.localize import localize_stream_file
from streamer.localize.localized_shard import LocalizedShard
from streamer.localize.repostory_configuration import (
@ -37,10 +39,11 @@ class TestExtractDateTime:
assert localize_stream_file(
stream_file, repository_configuration
) == LocalizedShard(
moment=datetime(2025, 6, 22, 12, 10, 0, 0),
markers=["Streamer"],
tags=[],
start_line=1,
end_line=1,
children=[],
location={"moment": "2025-06-22T12:10:00", "project": "streamer"},
location={"project": "streamer"},
)