Add dropdown exercise selection to Doris Barbell logs
This commit is contained in:
@@ -388,6 +388,9 @@ def test_seeded_routine_can_render_prefilled_log_sheet(tmp_path: Path) -> None:
|
||||
assert 'Thursday: Shoulders' in body
|
||||
assert 'Shoulder Press' in body
|
||||
assert 'Save shoulder day workout' in body
|
||||
assert 'name="exercise_0_name"' in body
|
||||
assert '<option value="Shoulder Press" selected>' in body
|
||||
assert 'value="Upright Row"' in body
|
||||
assert 'name="exercise_0_set_0_reps"' in body
|
||||
assert 'name="exercise_0_set_0_weight_lbs"' in body
|
||||
assert 'value="10"' in body
|
||||
@@ -417,7 +420,7 @@ def test_seeded_routine_log_submission_creates_structured_workout(tmp_path: Path
|
||||
'exercise_0_set_1_weight_lbs': '80',
|
||||
'exercise_0_set_2_reps': '8',
|
||||
'exercise_0_set_2_weight_lbs': '90',
|
||||
'exercise_1_name': 'Arnold Press',
|
||||
'exercise_1_name': 'Upright Row',
|
||||
'exercise_1_set_count': '3',
|
||||
'exercise_1_set_0_reps': '10',
|
||||
'exercise_1_set_0_weight_lbs': '35',
|
||||
@@ -441,6 +444,7 @@ def test_seeded_routine_log_submission_creates_structured_workout(tmp_path: Path
|
||||
assert payload[0]['total_volume_lbs'] == 3240
|
||||
assert payload[0]['exercises'][0]['exercise_name'] == 'Shoulder Press'
|
||||
assert payload[0]['exercises'][0]['sets'][2] == {'reps': 8, 'weight_lbs': 90.0}
|
||||
assert payload[0]['exercises'][1]['exercise_name'] == 'Upright Row'
|
||||
|
||||
|
||||
def test_existing_state_gets_seeded_routine_backfill(tmp_path: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user