File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
fake = Faker ()
15
15
16
16
17
- def test_root_returns_200 (client ):
18
- res = client .get (url_for ('root ' ))
17
+ def test_index_returns_200 (client ):
18
+ res = client .get (url_for ('index ' ))
19
19
assert res .status_code == 200
20
20
21
21
22
- def test_root_with_lang (client ):
22
+ def test_index_with_lang (client ):
23
23
""" Make sure the correct language is returned with lang_code query param """
24
- res = client .get (url_for ('root ' , lang_code = 'es' ))
24
+ res = client .get (url_for ('index ' , lang_code = 'es' ))
25
25
assert res .status_code == 200
26
- assert '<html lang="es"' in res .get_data ()
26
+ assert b '<html lang="es"' in res .get_data ()
27
27
28
28
29
29
def test_old_urls (client ):
30
30
""" Make sure the old style URLs load properly (e.g. /team) """
31
31
res = client .get (url_for ('team' , lang_code = 'en' ))
32
32
assert res .status_code == 200
33
- assert 'Our world-class team is led by entrepreneurs and engineers' in res .get_data ()
33
+ assert b 'Our world-class team is led by entrepreneurs and engineers' in res .get_data ()
34
34
35
35
36
36
def test_index_returns_200 (client ):
You can’t perform that action at this time.
0 commit comments