From 2cebaa7d3a6fcf0085888809c14c8b949b15257f Mon Sep 17 00:00:00 2001 From: D Anzorge Date: Wed, 6 Jun 2018 03:18:11 +0200 Subject: Add OAuth controller tests Tests for Pleroma.Web.OAuth.OAuthController --- test/support/factory.ex | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/support') 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 -- cgit v1.2.3