1. Dan Jacob
  2. flask-testing
  3. Issues
Issue #7 new

The use of assert is not recommanded for unittesting

Anonymous created an issue

It looks like Flask-Testing use assert which is bad



====================================================================== FAIL: test_login_post (tests.tests.LoginTest)

Traceback (most recent call last): File "/home/amirouche/projects/flask-door/tests/tests.py", line 50, in test_login_post self.assertRedirects(response, '/') File "/home/amirouche/projects/flask-door/Flask_Testing-0.3-py2.7.egg/flaskext/testing.py", line 164, in assertRedirects assert response.location == "http://localhost" + location AssertionError }}}

Comments (0)

  1. Log in to comment