Add OAuth controller tests

Tests for Pleroma.Web.OAuth.OAuthController
This commit is contained in:
D Anzorge 2018-06-06 03:18:11 +02:00
commit 2cebaa7d3a
2 changed files with 124 additions and 0 deletions

View file

@ -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