Coverage for tests/test_settings.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# class ExampleProjectSettingsTest(BaseTestCase): # """ # Check settings in: # pylucid_installer.page_instance_template.example_project # """ # def test_settings(self): # # 'createcachetable' is needed, because django-cms used the cache # # in init phase, see: # # https://github.com/divio/django-cms/issues/5079 # self.call_manage_py(["createcachetable"]) # # output = self.call_manage_py( # ["diffsettings"], # #debug=True # ) # # self.assertNotIn("ERROR", output) # # self.assertIn("SETTINGS_MODULE = 'example_project.settings'", output) # self.assertIn("SECRET_KEY = 'CHANGE ME!!!'", output) # self.assertIn("/path/to/page_instance", output) # # # DATABASE # self.assertIn("page_instance_template/example_project/example_project.db", output)
# changed from pylucid_installer:
# DATABASE |