response = self.client.get("/")
assert response.status_code == 200
+ response = self.client.get("/runners/")
+ assert response.status_code == 200
+
+ response = self.client.get("/runners/foobar")
+ assert response.status_code == 200
+
+ response = self.client.get("/?status=success&device=mako")
+ assert response.status_code == 200
+
if __name__ == "__main__":
unittest.main()
@app.route("/runners/")
def runners():
- runners = models.Runner.query.all()
+ runners = models.Runner.query.order_by(models.Runner.runner_sponsor).all()
return render_template('runners.html', runners=runners)
@app.route("/webhook", methods=('POST',))