Skip to content

Commit

Permalink
fix: added and updated examples in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mishelly-h committed Jan 31, 2024
1 parent f41a242 commit da9cd77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/passwordler/decrypt_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def decrypt_password(encrypted_message, random_seed = 123):
>>> encrypted_message = encrypt_password(original_message, random_seed = 123)
>>> decrypted_message = decrypt_password(encrypted_message, random_seed = 123)
Output: 'Monty Python'
"""
if not isinstance(encrypted_message, str):
raise TypeError(
Expand Down
6 changes: 6 additions & 0 deletions src/passwordler/password_strength.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ def password_strength(password):
Returns:
str: a rating of either 'weak', 'good' or 'strong'
Example:
>>> password_strength('baseball')
Output: 'Your password is: Weak'
>>> password_strength('Baseball4life!')
Output: 'Your password is: Strong'
"""
if not isinstance(password, str):
raise TypeError("'password' should be of type 'string'")
Expand Down

0 comments on commit da9cd77

Please sign in to comment.