Closed fenimore closed 5 years ago
@fenimore Try adding the main()
method to the end of your tests as documented here:
http://flask-testing.readthedocs.io/en/latest/#running-tests
Actually, it looks like you don't even need that. You just need to run it with either pytest or nose.
Is this problem solved? After adding the main() method to the end of my test file, I still got the same issue 'MyTest' object has no attribute 'get_server_url'
Noticed the documentation is rather, vacant. Any good references to full app, such as hello world flask app and a script with test cases? I cannot get off the ground with current documentation provided.
Hi, I'm using Python 2 and
Hi, I'm trying to use flask-testing, and so I've tried running the documented quickstart way, and also I've copied some of the tests and tried running them in my project and I've had no avail. So for example, if I run this:
I get:
and if I run (directly from the docs):
I get:
or if I run:
I get: