Skip to content

Instantly share code, notes, and snippets.

@alexpodoff
Created January 5, 2017 16:11
Show Gist options
  • Save alexpodoff/c9708bc0eb296f12074fef105b9a0089 to your computer and use it in GitHub Desktop.
Save alexpodoff/c9708bc0eb296f12074fef105b9a0089 to your computer and use it in GitHub Desktop.
================================== FAILURES ===================================
___________________________ test_signup_new_account ___________________________
app = <fixture.application.Application object at 0x0000000003D89828>
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:20: in new_user
wd.get(quopri.decodestring(url))
..\env\lib\site-packages\selenium\webdriver\remote\webdriver.py:248: in get
self.execute(Command.GET, {'url': url})
..\env\lib\site-packages\selenium\webdriver\remote\webdriver.py:234: in execute
response = self.command_executor.execute(driver_command, params)
..\env\lib\site-packages\selenium\webdriver\remote\remote_connection.py:398: in execute
data = utils.dump_json(params)
..\env\lib\site-packages\selenium\webdriver\remote\utils.py:34: in dump_json
return json.dumps(json_struct)
c:\users\admin\appdata\local\programs\python\python35\Lib\json\__init__.py:230: in dumps
return _default_encoder.encode(obj)
c:\users\admin\appdata\local\programs\python\python35\Lib\json\encoder.py:198: in encode
chunks = self.iterencode(o, _one_shot=True)
c:\users\admin\appdata\local\programs\python\python35\Lib\json\encoder.py:256: in iterencode
return _iterencode(o, 0)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <json.encoder.JSONEncoder object at 0x0000000002F05BA8>
o = b'http://localhost/mantisbt-1.3.4//verify.php?id=16&confirm_hash=NU4G9knx'
def default(self, o):
"""Implement this method in a subclass such that it returns
a serializable object for ``o``, or calls the base implementation
(to raise a ``TypeError``).
For example, to support arbitrary iterators, you could
implement default like this::
def default(self, o):
try:
iterable = iter(o)
except TypeError:
pass
else:
return list(iterable)
# Let the base class default method raise the TypeError
return JSONEncoder.default(self, o)
"""
> raise TypeError(repr(o) + " is not JSON serializable")
E TypeError: b'http://localhost/mantisbt-1.3.4//verify.php?id=16&confirm_hash=NU4G9knx' is not JSON serializable
c:\users\admin\appdata\local\programs\python\python35\Lib\json\encoder.py:179: TypeError
========================== 1 failed in 19.00 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