Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 13, 2024
1 parent 3a3eddd commit 19014c4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,16 +577,6 @@ def test_manage_creds(self, get_project_ids, get_sites, get_creds, avatar):
self.assertIn(b'credid', res.data)
self.assertIn(b'site_url', res.data)
self.assertIn(b'fedcloudRow.png', res.data)
self.assertEqual(utils.CREDS_CACHE, {"userid": [{"id": "credid", "type": "fedcloud",
"host": "site_url", "project_id": "project"}]})
self.assertEqual(get_creds.call_count, 2)

res = self.client.get('/manage_creds')
self.assertEqual(200, res.status_code)
self.assertIn(b'credid', res.data)
self.assertIn(b'site_url', res.data)
self.assertIn(b'fedcloudRow.png', res.data)
self.assertEqual(get_creds.call_count, 2)

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

0 comments on commit 19014c4

Please sign in to comment.