Skip to content

[WIP] Fixing method Phone.validate_phone adding some comments in readme.md#1

Open
franciscoprin wants to merge 2 commits into
masterfrom
Phone-validate_phone-method-fix
Open

[WIP] Fixing method Phone.validate_phone adding some comments in readme.md#1
franciscoprin wants to merge 2 commits into
masterfrom
Phone-validate_phone-method-fix

Conversation

@franciscoprin

@franciscoprin franciscoprin commented Sep 25, 2020

Copy link
Copy Markdown
Owner

Fixing tests.

TestPhone.test_validate_phone_start_with_plus
TestPhone.test_validate_phone_smaller_than_15_characters
TestPhone.test_validate_phone_doesnt_allow_special_characters # missing

@franciscoprin franciscoprin changed the title Fixing method Phone.validate_phone adding some comments in readme.md [WIP] Fixing method Phone.validate_phone adding some comments in readme.md Sep 25, 2020

@franciscoprin franciscoprin left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosvivasb and @Anahis259 could you 👀 this, please.

Comment thread README.md Outdated
Comment thread main.py
Comment on lines +9 to +10
# if phone_is_invalid:
# print("Your phone number is invalid.")

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, it seems that I had made a small mistake here, could you uncomment these lines, please.

Comment thread phone.py
Comment on lines +16 to +19
if self.phone_letters:
if self.phone_letters[0] == "+" and len(self.phone_letters) < 15:
return True
return False

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the required code to fix the unit test. More work is required here to fix the test_validate_phone_doesnt_allow_special_characters

@franciscoprin franciscoprin removed the request for review from carlosvivasb November 29, 2024 13:43
@franciscoprin franciscoprin added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants