feat: extract date & time from tags
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
This commit is contained in:
parent
ee91b2e8db
commit
d5b1541436
6 changed files with 246 additions and 22 deletions
|
|
@ -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"},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue