Skip to content

mate-academy/py-check-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check password

Write tests for the function check_password, which takes the string password and returns True for the valid password, and False for invalid.

Rules for the valid password:

  • accepts only letters of the Latin alphabet Aa-Zz, digits 0-9 or special character from $@#&!-_;
  • at least 8 characters;
  • maximum 16 characters inclusive;
  • contains at least 1 digit, 1 special character, 1 uppercase letter.

Examples:

check_password('Pass@word1') is True
check_password('qwerty') is False
check_password('Str@ng') is False

Run pytest app/ to check if function pass your tests.

Run pytest --numprocesses=auto tests/ to check if your tests cover all boundary conditions and pass task tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages