diff options
author | D Anzorge <d.anzorge@gmail.com> | 2018-06-06 03:18:11 +0200 |
---|---|---|
committer | D Anzorge <d.anzorge@gmail.com> | 2018-06-06 03:18:11 +0200 |
commit | 2cebaa7d3a6fcf0085888809c14c8b949b15257f (patch) | |
tree | 64ac8b0fa984993ce7e33329747480c972c6c33b /test/support | |
parent | 3607dc4558b2d30ca36d9a600b6bbf916b71f54a (diff) | |
download | pleroma-2cebaa7d3a6fcf0085888809c14c8b949b15257f.tar.gz pleroma-2cebaa7d3a6fcf0085888809c14c8b949b15257f.zip |
Add OAuth controller tests
Tests for Pleroma.Web.OAuth.OAuthController
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/factory.ex | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index 5cf456e3c..6c48d390f 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -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 |