validate mobile number so that sms auth works

This commit is contained in:
stvnrlly
2022-10-28 14:42:25 -04:00
parent 19cdd9b052
commit 11d123051a
2 changed files with 17 additions and 8 deletions

View File

@@ -11,10 +11,10 @@ from tests.app.db import create_annual_billing, create_service
def test_create_test_user_command(notify_db_session, notify_api):
# number of users before adding ours
user_count = User.query.count()
# run the command
notify_api.test_cli_runner().invoke(
create_test_user, [
@@ -33,7 +33,7 @@ def test_create_test_user_command(notify_db_session, notify_api):
# that user should be the one we added
user = User.query.filter_by(
name = 'Fake Personson'
name='Fake Personson'
).first()
assert user.email_address == 'somebody@fake.gov'
assert user.auth_type == 'sms_auth'