Skip to content

TestFailure isn't a useful message #2

Description

@bradleyayers
(.env)brad-mbp:foo brad$ ./manage.py test api
Creating test database for alias 'default'...

.F

======================================================================
FAIL: unittest.case.FunctionTestCase (bars__should_list_on_get)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/brad/work/foo/.env/lib/python2.7/site-packages/attest/collectors.py", line 97, in wrapper
    func(*args[:argc])
  File "/Users/brad/work/foo/foo/apps/api/v1/tests.py", line 393, in bars__should_list_on_get
    assert json.loads(response.content) == [
  File "/Users/brad/work/foo/.env/lib/python2.7/site-packages/attest/hook.py", line 135, in assert_hook
    raise TestFailure(value, msg)
TestFailure

----------------------------------------------------------------------
Ran 22 tests in 8.501s

FAILED (failures=3)
Destroying test database for alias 'default'...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions