"""The Instructions pictures use per-session example numbers, so no caption may hard-code one.""" from pathlib import Path import pytest APPS = ['group_noinfo', 'individual_choice'] @pytest.mark.parametrize('app', APPS) def test_instruction_caption_uses_the_example_center(app): text = (Path(__file__).parent.parent / app / 'Instructions.html').read_text(encoding='utf-8') assert 'center outcome = 50)' not in text assert 'center outcome = {{ ex_ctr }})' in text