Test permissions use api (#784)

* initial push

* fmt; clippy

---------

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
Wyatt Verchere
2023-12-11 18:24:49 -08:00
committed by GitHub
parent 27ccd3dfa8
commit 6217523cc8
32 changed files with 1558 additions and 1015 deletions

View File

@@ -122,7 +122,7 @@ impl<A: Api> TestEnvironment<A> {
pub async fn assert_read_notifications_status(
&self,
user_id: &str,
pat: &str,
pat: Option<&str>,
status_code: StatusCode,
) {
let resp = self.api.get_user_notifications(user_id, pat).await;
@@ -133,7 +133,7 @@ impl<A: Api> TestEnvironment<A> {
pub async fn assert_read_user_projects_status(
&self,
user_id: &str,
pat: &str,
pat: Option<&str>,
status_code: StatusCode,
) {
let resp = self.api.get_user_projects(user_id, pat).await;