Skip to content

Commit 78649c6

Browse files
author
Fabien Coelho
committed
improve comments
1 parent 802b33c commit 78649c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_app.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ def test_app_who_am_i(app): # GET /who-am-i
6565
def api(ft_client):
6666
# set a default
6767
ft_client._default_login = "calvin"
68-
# bad password / token
68+
# bad password and token
6969
ft_client.setPass("moe", None)
7070
ft_client.setToken("moe", None)
7171
ft_client.setPass("moe", "bad password")
7272
ft_client.setToken("moe", "bad token")
73-
# cookies
73+
# set language cookies
7474
ft_client.setCookie("calvin", "lang", "en")
7575
ft_client.setCookie("hobbes", "lang", "fr")
76-
# get valid tokens using password authn
76+
# get valid tokens using password authn on /login
7777
res = ft_client.get("/login", login="calvin", auth="basic", status=200)
7878
assert res.json["user"] == "calvin"
7979
ft_client._auth.setToken("calvin", res.json["token"])
@@ -100,7 +100,7 @@ def api(ft_client):
100100
assert res.json["user"] == "calvin"
101101
res = ft_client.get("/who-am-i", status=200)
102102
assert res.json["user"] == "calvin"
103-
# add a bad password
103+
# ready for testing routes
104104
yield ft_client
105105

106106
def test_admin(api):

0 commit comments

Comments
 (0)