Skip to content

Commit

Permalink
request user orgs list test
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 5, 2020
1 parent 4776db5 commit 96c08cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/integration_tests/tests_orgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ def test_get_200_auth_user(self):
['user-public-view-org', 'public-edit-org', 'public-view-org', 'OCL']
)

response = self.client.get(
'/user/orgs/?verbose=true',
HTTP_AUTHORIZATION='Token ' + random_user.get_token(),
format='json'
)

self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.data), 0)

def test_get_200_superuser(self):
response = self.client.get(
'/orgs/',
Expand Down

0 comments on commit 96c08cd

Please sign in to comment.