Assert has_request_signatures is in the instances cache
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
This commit is contained in:
parent
d0772cf6f5
commit
eb70feb7ca
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
defmodule Pleroma.InstancesTest do
|
defmodule Pleroma.InstancesTest do
|
||||||
alias Pleroma.Instances
|
alias Pleroma.Instances
|
||||||
|
alias Pleroma.Instances.Instance
|
||||||
|
|
||||||
use Pleroma.DataCase
|
use Pleroma.DataCase
|
||||||
|
|
||||||
|
@ -128,6 +129,9 @@ test "sets instance has request signatures" do
|
||||||
|
|
||||||
{:ok, instance} = Instances.set_request_signatures(host)
|
{:ok, instance} = Instances.set_request_signatures(host)
|
||||||
assert instance.has_request_signatures
|
assert instance.has_request_signatures
|
||||||
|
|
||||||
|
{:ok, cached_instance} = Instance.get_cached_by_url(host)
|
||||||
|
assert cached_instance.has_request_signatures
|
||||||
end
|
end
|
||||||
|
|
||||||
test "returns error status on non-binary input" do
|
test "returns error status on non-binary input" do
|
||||||
|
|
Loading…
Reference in a new issue