Skip to content

Commit 9f004e4

Browse files
committed
update test for python3, remove root resolver in favor of index
1 parent 798fd63 commit 9f004e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_functional.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
fake = Faker()
1515

1616

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'))
1919
assert res.status_code == 200
2020

2121

22-
def test_root_with_lang(client):
22+
def test_index_with_lang(client):
2323
""" 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'))
2525
assert res.status_code == 200
26-
assert '<html lang="es"' in res.get_data()
26+
assert b'<html lang="es"' in res.get_data()
2727

2828

2929
def test_old_urls(client):
3030
""" Make sure the old style URLs load properly (e.g. /team) """
3131
res = client.get(url_for('team', lang_code='en'))
3232
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()
3434

3535

3636
def test_index_returns_200(client):

0 commit comments

Comments
 (0)