Add OAuth controller tests
Tests for Pleroma.Web.OAuth.OAuthController
This commit is contained in:
parent
3607dc4558
commit
2cebaa7d3a
2 changed files with 124 additions and 0 deletions
|
|
@ -146,4 +146,15 @@ defmodule Pleroma.Factory do
|
|||
subscribers: []
|
||||
}
|
||||
end
|
||||
|
||||
def oauth_app_factory do
|
||||
%Pleroma.Web.OAuth.App{
|
||||
client_name: "Some client",
|
||||
redirect_uris: "https://example.com/callback",
|
||||
scopes: "read",
|
||||
website: "https://example.com",
|
||||
client_id: "aaabbb==",
|
||||
client_secret: "aaa;/&bbb"
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue