Questions tagged [flask-testing]

80 questions
0
votes
1 answer

Test Login Required Flask Application

i am writing tests for a flask web application and every Test Requires User To Be Logged in is there any Way to Define Test function and use it in other Tests? this is my current TestCase and i want to implement login function just using post to…
shalbafzadeh
  • 803
  • 1
  • 8
  • 20
-1
votes
1 answer

How to test python/flask app with third-party http lib?

I have a purest suite for my flask app that works great. However, I want to test some of my code that uses a third-party library (Qt) to send http requests. How is this possible? I see flask-testing has the live_server fixture which accomplishes…
patrickkidd
  • 2,797
  • 2
  • 19
  • 19
-1
votes
1 answer

Routing with Testing Flask

I have a delete Route which I would like to Test it But Got this error which I think its coz of Route problem I will be really appreciate if you could help me So when I delete a user it will direct to…
LiLi
  • 301
  • 2
  • 7
  • 21
-2
votes
1 answer

change Test database From sqlite to Postgresql

In my flask application I used Sqlite for Test Now I want to change it to postgresql But Got error OperationalError: (OperationalError) FATAL: database "mytest" does not exist None None am I doing it Right? where is the problem , Thanx…
LiLi
  • 301
  • 2
  • 7
  • 21
-2
votes
1 answer

ValueError: View function did not return a response

I try to test the edit route for my flask Application But get this error I think this error is usually because of return even though I have a return in my edit route how Can I fix this error Thanks? error: File…
LiLi
  • 301
  • 2
  • 7
  • 21
1 2 3 4 5
6