]> scripts.mit.edu Git - wizard.git/blob - wizard/app/tests/test_mediawiki.py
Make the executables in math for MediaWiki.
[wizard.git] / wizard / app / tests / test_mediawiki.py
1 import os.path
2
3 from wizard import deploy
4 from wizard.app import mediawiki
5
6 def test_extract():
7     app = mediawiki.Application('mediawiki')
8     d = deploy.Deployment(os.path.join(os.path.dirname(os.path.abspath(__file__)), "mediawiki"))
9     result = app.extract(d)
10     assert result['WIZARD_SECRETKEY'] == '"wizard_proxykey"'
11     assert result['WIZARD_SCRIPTPATH'] == '"/wizard_scriptpath"'
12     assert result['WIZARD_SESSIONNAME'] == 'wizard_SID'
13     assert result['WIZARD_DBSERVER'] == '"wizard_dbserver"'
14     assert result['WIZARD_DBUSER'] == '"wizard_dbuser"'
15     assert result['WIZARD_SITENAME'] == '"wizard_sitename"'
16     assert result['WIZARD_DBPASSWORD'] == '"wizard_dbpassword"'
17     assert result['WIZARD_EMERGENCYCONTACT'] == '"wizard_emergencycontact"'
18     assert result['WIZARD_IP'] is None
19     assert result['WIZARD_TMPDIR'] == '/mit/wizard/web_scripts_tmp'
20     assert result['WIZARD_DBNAME'] == '"wizard_dbname"'
21