I'm doing a basic test to ensure once the language is switched, the right text is loaded. Locally, the test works but the same test fails on codeship.
The code:
class LanguageTest(TestCase):
def setUp(self):
translation.activate("sw")
def tearDown(self):
translation.activate("en")
def test_menu_options_sw(self):
for s in TOP_LEVEL_MENUS:
self.assertRegexpMatches(response.text, s)
The variable TOP_LEVEL_MENUS
is just a list of options the user should see in the other language which is activated in setUp
Currently on codeship, the language still remains the default ie English and not Swahili (sw).
Any ideas why the test fails on Codeship?