@pytest.mark.cmd
@pytest.mark.django_db
def test_cmd_initdb_noprojects(capfd, no_permission_sets, no_permissions, no_users, templates):
 templates.delete()
 call_command('initdb', '--no-projects')
 (out, err) = capfd.readouterr()
 assert ('Successfully populated the database.' in out)
 assert ('pootle createsuperuser' in out)

@ pytest . mark . cmd @ pytest . mark . django_db def test_cmd_initdb_noprojects ( capfd , no_permission_sets , no_permissions , no_users , templates ) : templates . delete ( ) call_command ( 'initdb' , '--no-projects' ) ( out , err ) = capfd . readouterr ( ) assert ( 'Successfully populated the database.' in out ) assert ( 'pootle createsuperuser' in out )
initialise the database with initdb .