Update tests
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
92fd157cd8
commit
49985b1614
1 changed files with 12 additions and 2 deletions
|
|
@ -194,6 +194,16 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
||||||
|
|
||||||
setup do: clear_config(:configurable_from_database, true)
|
setup do: clear_config(:configurable_from_database, true)
|
||||||
|
|
||||||
|
setup do:
|
||||||
|
clear_config(:database_config_whitelist, [
|
||||||
|
{:pleroma},
|
||||||
|
{:http},
|
||||||
|
{:idna},
|
||||||
|
{:oban},
|
||||||
|
{:tesla},
|
||||||
|
{:ueberauth}
|
||||||
|
])
|
||||||
|
|
||||||
test "create new config setting in db", %{conn: conn} do
|
test "create new config setting in db", %{conn: conn} do
|
||||||
ueberauth = Application.get_env(:ueberauth, Ueberauth)
|
ueberauth = Application.get_env(:ueberauth, Ueberauth)
|
||||||
on_exit(fn -> Application.put_env(:ueberauth, Ueberauth, ueberauth) end)
|
on_exit(fn -> Application.put_env(:ueberauth, Ueberauth, ueberauth) end)
|
||||||
|
|
@ -807,7 +817,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
||||||
%{
|
%{
|
||||||
"tuple" => [
|
"tuple" => [
|
||||||
"/websocket",
|
"/websocket",
|
||||||
"Phoenix.Endpoint.CowboyWebSocket",
|
":sth",
|
||||||
%{
|
%{
|
||||||
"tuple" => [
|
"tuple" => [
|
||||||
"Phoenix.Transports.WebSocket",
|
"Phoenix.Transports.WebSocket",
|
||||||
|
|
@ -871,7 +881,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
||||||
%{
|
%{
|
||||||
"tuple" => [
|
"tuple" => [
|
||||||
"/websocket",
|
"/websocket",
|
||||||
"Phoenix.Endpoint.CowboyWebSocket",
|
":sth",
|
||||||
%{
|
%{
|
||||||
"tuple" => [
|
"tuple" => [
|
||||||
"Phoenix.Transports.WebSocket",
|
"Phoenix.Transports.WebSocket",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue