Skip to content

Commit e86f88b

Browse files
committed
More routes to test against
1 parent 697d56d commit e86f88b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/apps/flaskalino.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,30 @@ def hello():
1111
return "<center><h1>🐍 Hello Stan! 🦄</h1></center>"
1212

1313

14+
@app.route("/400")
15+
def fourhundred():
16+
return "Bad Request", 400
17+
18+
19+
@app.route("/405")
20+
def fourhundredfive():
21+
return "Method not allowed", 405
22+
23+
24+
@app.route("/500")
25+
def fivehundred():
26+
return "Internal Server Error", 500
27+
28+
29+
@app.route("/504")
30+
def fivehundredfour():
31+
return "Gateway Timeout", 504
32+
33+
34+
@app.route("/exception")
35+
def exception():
36+
raise Exception('fake error')
37+
38+
1439
if __name__ == '__main__':
1540
app.run()

0 commit comments

Comments
 (0)