Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit eee7afa

Browse files
committed
adds tests to make sure all outside links still available for runestone academy server
1 parent fd8ef55 commit eee7afa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_server.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,3 +698,17 @@ def test_pageprogress(test_client, runestone_db_tools, test_user_1):
698698
'"subc_b_1": 1')
699699
assert '"LearningZone_poll": 0' in test_user_1.test_client.text
700700
assert '"subc_b_fitb": 0' in test_user_1.test_client.text
701+
702+
def test_lockdown(test_client, test_user_1):
703+
test_user_1.login()
704+
base_course = test_user_1.course.base_course
705+
706+
res = test_client.validate('books/published/{}/index.html'.format(base_course))
707+
assert '/default/user/login">&nbsp; </a>' in res
708+
assert 'Runestone in social media:' in res
709+
assert '>Change Course</a></li>' in res
710+
assert 'id="profilelink">Edit' in res
711+
assert '<ul class="dropdown-menu user-menu">' in res
712+
assert 'div id="fb-root"></div' in res
713+
assert "<span id='numuserspan'></span><span class='loggedinuser'></span>" in res
714+
assert '<script async src="https://hypothes.is/embed.js"></script>' in res

0 commit comments

Comments
 (0)