You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
518 B
17 lines
518 B
''' functional tests for ordr2.views.pages ''' |
|
|
|
from . import testappsetup, testapp # noqa: F401 |
|
|
|
|
|
def test_welcome(testapp): # noqa: F811 |
|
result = testapp.get('/') |
|
assert result.location == 'http://localhost/login' |
|
testapp.login('TerryGilliam', 'Terry') |
|
result = testapp.get('/') |
|
assert result.location == 'http://localhost/orders' |
|
|
|
|
|
def test_faq(testapp): # noqa: F811 |
|
result = testapp.get('/faq') |
|
active = result.html.find('li', class_='active') |
|
assert active.a['href'] == '/faq'
|
|
|