I'm trying to test a JSON API I implemented in Flask
Here's my view function
@app.route("/dummy")
def dummy():
return {"dummy":"dummy-value"}
And in my Unittest I'm testing using
def setUp(self):
self.app = my_app.app.test_client()
def test_dummy(self):
response = self.app.get("/dummy")
self.assertEqual(response['dummy'], "dummy-value")
However, when I ran it, I get the error TypeError: 'dict' object is not callable