Prefill Doris Barbell routine log timestamps
Some checks failed
secret-guardrails / artifact-secret-scan (push) Has been cancelled
secret-guardrails / gitleaks (push) Has been cancelled

This commit is contained in:
Fizzlepoof
2026-05-28 18:05:54 +00:00
parent 8a61169ab9
commit 6ba3fe208e
2 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import json
import re
from pathlib import Path
from fastapi.testclient import TestClient
@@ -390,6 +391,7 @@ def test_seeded_routine_can_render_prefilled_log_sheet(tmp_path: Path) -> None:
assert 'name="exercise_0_set_0_reps"' in body
assert 'name="exercise_0_set_0_weight_lbs"' in body
assert 'value="10"' in body
assert re.search(r'name="performed_at" value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}"', body)
def test_seeded_routine_log_submission_creates_structured_workout(tmp_path: Path) -> None: