def test_all_models(): request = req('get') request.user = Struct(is_staff=True) p = Admin.all_models(request=request) p = p.bind(request=request) assert list(p.parts.all_models.columns.keys()) == ['app_name', 'model_name']
def test_all_models(settings): settings.ROOT_URLCONF = __name__ request = staff_req('get') assert 'Authentication' in Admin.all_models(request=request).bind( request=request).render_to_response().content.decode()
def test_all_models(): request = staff_req('get') assert 'Authentication' in Admin.all_models(request=request).bind( request=request).render_to_response().content.decode()