Python api.views.UserViewSet() Examples
The following are 2
code examples of api.views.UserViewSet().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
api.views
, or try the search function
.
Example #1
Source File: test_views.py From iguana with Creative Commons Attribution Share Alike 4.0 International | 6 votes |
def test_view_and_template(self): # TODO TESTCASE api view and template # use view_and_template() # TODO which views? # - UserViewSet # view_and_template(self, UserViewSet, '', 'api:users') view_and_template(self, ProjectViewSet, None, 'api:project-detail', address_kwargs={'name_short': self.project.name_short}) # - 'timelogs' # - 'notifications' # - 'issues' # - 'project' # - 'project_timelogs' # - 'project_issues' # - 'project_sprints' # - 'project_issues_comments' # - 'project_issues_timelogs' # - ... pass
Example #2
Source File: test_views.py From iguana with Creative Commons Attribution Share Alike 4.0 International | 6 votes |
def test_redirect_to_login_and_login_required(self): self.client.logout() # TODO TESTCASE api redirect to login and login required # redirect_to_login_and_login_required() # TODO which views? # - UserViewSet # - 'timelogs' # - 'notifications' # - 'issues' # - 'project' # - 'project_timelogs' # - 'project_issues' # - 'project_sprints' # - 'project_issues_comments' # - 'project_issues_timelogs' # - ... pass