Skip to content

Commit

Permalink
Fix API endpoint string formatting in integration tests for user cred…
Browse files Browse the repository at this point in the history
…entials
  • Loading branch information
arash77 committed Jan 2, 2025
1 parent 2a16949 commit e346936
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_invalid_provide_credential(self):
}
],
}
response = self._post(f"/api/users/current/credentials", data=payload, json=True)
response = self._post("/api/users/current/credentials", data=payload, json=True)
self._assert_status_code_is(response, 400)

def test_delete_not_existing_service_credentials(self):
Expand Down Expand Up @@ -69,11 +69,11 @@ def _populate_user_credentials(self):
}
],
}
response = self._post(f"/api/users/current/credentials", data=payload, json=True)
response = self._post("/api/users/current/credentials", data=payload, json=True)
self._assert_status_code_is(response, 200)
return response.json()

def _list_user_credentials(self):
response = self._get(f"/api/users/current/credentials")
response = self._get("/api/users/current/credentials")
self._assert_status_code_is(response, 200)
return response.json()

0 comments on commit e346936

Please sign in to comment.