Metatron_Student_ERP/print_test_39 2.py

10 lines
325 B
Python

with open('addons/education_lms/tests/test_education_lms.py', 'r') as f:
in_test = False
for line in f:
if 'def test_39_course_eligibility' in line:
in_test = True
elif in_test and line.strip().startswith('def test_'):
break
if in_test:
print(line, end='')