Skip to content

Commit

Permalink
Add tests for dashboardconfig. rockstor#1014
Browse files Browse the repository at this point in the history
  • Loading branch information
Mchakravartula committed Nov 20, 2015
1 parent 05a0f19 commit dc6fc0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rockstor/storageadmin/tests/test_dashboardconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ def test_get_requests(self):
def test_post_requests(self):

# happy path
response = self.client.post(self.BASE_URL)
data = {'widgets':''}
response = self.client.post(self.BASE_URL, data=data)
self.assertEqual(response.status_code,
status.HTTP_200_OK, msg=response.data)

def test_put_requests(self):

# happy path
response = self.client.put(self.BASE_URL)
data = {'widgets':''}
response = self.client.put(self.BASE_URL, data=data)
self.assertEqual(response.status_code,
status.HTTP_200_OK, msg=response.data)

0 comments on commit dc6fc0a

Please sign in to comment.