Skip to content

Instantly share code, notes, and snippets.

@alexpodoff
Created January 4, 2017 13:00
Show Gist options
  • Save alexpodoff/29917087eb78774be6ea66b4c0889d8a to your computer and use it in GitHub Desktop.
Save alexpodoff/29917087eb78774be6ea66b4c0889d8a to your computer and use it in GitHub Desktop.
================================== FAILURES ===================================
___________________________ test_signup_new_account ___________________________
app = <fixture.application.Application object at 0x00000000047F4A58>
def test_signup_new_account(app):
username = random_username("user_", 10)
email = username + "@localhost"
password = "test"
app.james.ensure_user_exists(username, password)
> app.signup.new_user(username, email, password)
test_signup_new_acc.py:13:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
..\fixture\signup.py:16: in new_user
url = self.extract_confirmation_url(mail)
..\fixture\signup.py:24: in extract_confirmation_url
return re.search("http://.*$", text, re.MULTILINE).group(0)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pattern = 'http://.*$', string = None, flags = 8
def search(pattern, string, flags=0):
"""Scan through string looking for a match to the pattern, returning
a match object, or None if no match was found."""
> return _compile(pattern, flags).search(string)
E TypeError: expected string or bytes-like object
..\env\lib\re.py:173: TypeError
========================== 1 failed in 18.21 seconds ==========================
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment