$ python cms_helper.py Creating test database for alias 'default'... ........... ------------------------------------------------------- Ran 11 tests in 8.668s OK Destroying test database for alias 'default'... Without arguments it just runs the tests
commands: server: execute the bundled project so you can interact with it makemigrations: generates migrations (both south and django) compilemessages / makemessages ... any command ... (through call_command)
'en', plugin, edit=True) # Render a single plugin rendered_1 = plugin.render_plugin(context, placeholder) # Render a whole placeholder rendered_2 = render_placeholder( placeholder, context, editable=True ) # Render the plugin - Same as rendered_1 but in one pass rendered_3 = self.render_plugin(page, 'en', plugin, edit=True)
is made with self.user logged in self.client.get([...]) with self.login_user_context(self.user_staff): # this request is made with self.user_staff logged in self.client.get([...]) BaseTestCase.login_user_context: context manager for authenticated sessions
is_superuser=True, base_cms_permissions=True, permissions=('add_something',) ) BaseTestCase.create_user knows about custom user models An admin, a staff and a normal user are provided by default in setUpClass