projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bugfix/simple-notifications-for-non-create-activities' into 'develop'
[akkoma]
/
test
/
support
/
data_case.ex
diff --git
a/test/support/data_case.ex
b/test/support/data_case.ex
index 9dde6b5e552160b7e9f137b283df845724900e72..df260bd3f9794dbd9d6f7470505cec5cbaf4eaf8 100644
(file)
--- a/
test/support/data_case.ex
+++ b/
test/support/data_case.ex
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.DataCase do
@moduledoc """
This module defines the setup for tests requiring
defmodule Pleroma.DataCase do
@moduledoc """
This module defines the setup for tests requiring
@@
-22,11
+26,13
@@
defmodule Pleroma.DataCase do
import Ecto.Changeset
import Ecto.Query
import Pleroma.DataCase
import Ecto.Changeset
import Ecto.Query
import Pleroma.DataCase
+ use Pleroma.Tests.Helpers
end
end
setup tags do
Cachex.clear(:user_cache)
end
end
setup tags do
Cachex.clear(:user_cache)
+ Cachex.clear(:object_cache)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
unless tags[:async] do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Pleroma.Repo)
unless tags[:async] do