Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 17, 2024
1 parent f3dd067 commit 0df3cf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ def test_manage_creds(self, get_project_ids, get_sites, get_creds, avatar):
self.assertIn(b'site_url', res.data)
self.assertIn(b'fedcloudRow.png', res.data)

res = self.client.get('/manage_creds?json=1')
self.assertEqual(200, res.status_code)
self.assertEqual(json.loads(res.data), [{"id": "credid", "type": "fedcloud", "host": "site_url",
"project_id": "project"}])

@patch("app.utils.avatar")
@patch("app.db_cred.DBCredentials.get_cred")
@patch("app.db_cred.DBCredentials.write_creds")
Expand Down

0 comments on commit 0df3cf3

Please sign in to comment.