def testGetAll(self):
assert b'[]' in self.app.get("/problems").data
exampleProblem = copy.deepcopy(EXAMPLE_PROBLEM)
self.db.problem.insert_one(exampleProblem)
newProblem = json.loads(self.app.get("/problems").data.decode("utf-8"))[0]
assert areDicsEqual(exampleProblem, newProblem)
评论列表
文章目录