Skip to content

Commit

Permalink
Enable module page visiting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
copyninja committed Jun 1, 2014
1 parent 86cee27 commit c048085
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/frontend/mainpage_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def test_moduleloaded(self):
# TODO: URL in modules needs to be fixed befor enabling
# below tests, for now skip transliteration which is
# enabled in test conf but url is not fixed
# if m != 'transliteration' and m != 'soundex':
# r1 = self.get('/' + m)
# self.assertIn('<title> {} - Indic Language Computing Platform' +
# ' </title>'.format(m), self.assertOk(r1).data)
if m != 'transliteration':
r1 = self.get('/' + m)
self.assertIn('<title> ' + m.encode('utf-8') +
' - Indic Language Computing Platform' +
' </title>', self.assertOk(r1).data)

def test_pagenotfound(self):
r = self.get('/blablabla')
Expand Down

0 comments on commit c048085

Please sign in to comment.