Test in step 13 of Password Generator project not checking for function body content #54596
Labels
new python course
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
status: PR in works
Work in Progress (WIP) Issues.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the bug
Step 13 asks to declare a function and move the existing lines of code after the imports inside it. There's only one test that checks that the function exists. Therefore, one can pass this step declaring an empty function.
To Reproduce
Steps to reproduce the behavior:
def generate_password(): pass
Expected behavior
def generate_password(): pass
should not be enough to pass this step.Another tests should check that the lines of code inside the editable region are inside the function body.
Additional context
ast-based helpers docs https://contribute.freecodecamp.org/#/curriculum-help?id=ast-based-helpers
The text was updated successfully, but these errors were encountered: