tests/find #32

Merged
jkuhl merged 28 commits from tests/find into develop 2026-04-15 12:35:16 +02:00
Showing only changes of commit d8bb9e4080 - Show all commits

fix import
Some checks failed
Mypy / mypy (push) Failing after 1m14s
Pytest / pytest (3.12) (push) Failing after 1m18s
Pytest / pytest (3.13) (push) Failing after 1m11s
Pytest / pytest (3.14) (push) Failing after 1m13s
Ruff / ruff (push) Successful in 1m1s

Justus Kuhlmann 2026-04-15 10:49:03 +02:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -6,8 +6,8 @@ import numpy as np
from .input.implementations import codes
from .tools import k2m, get_db_file
from .tracker import get
from .integrity import check_time_validity
from typing import Any, Optional, Union
from .integrity import has_valid_times
from typing import Any, Optional
from pathlib import Path
import datetime as dt
from collections.abc import Callable
@ -88,7 +88,7 @@ def _time_filter(results: pd.DataFrame, created_before: Optional[str]=None, cre
result = results.iloc[ind]
created_at = dt.datetime.fromisoformat(result['created_at'])
updated_at = dt.datetime.fromisoformat(result['updated_at'])
db_times_valid = check_time_validity(created_at=created_at, updated_at=updated_at)
db_times_valid = has_valid_times(result)
if not db_times_valid:
raise ValueError('Time stamps not valid for result with path', result["path"])