Do not allow committing tests with a .ex extension

This commit is contained in:
Mark Felder 2024-08-07 13:07:54 -04:00
parent 351a306d46
commit 2531785384
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View file

@ -63,3 +63,6 @@ pleroma.iml
archive-*
.gitlab-ci-local
# Test files should be named *.exs
test/pleroma/**/*.ex

View file

View file

@ -17,7 +17,7 @@ test "shows follower/following count normally" do
follower = insert(:user)
{:ok, _, _, _} = CommonAPI.follow(other_user, following)
{:ok, follower, following, _activity} = CommonAPI.follow(following, follower)
{:ok, following, follower, _activity} = CommonAPI.follow(following, follower)
result =
StreamerView.render(
@ -46,7 +46,7 @@ test "hides follower count for :hide_followers and :hide_followers_count" do
follower = insert(:user)
{:ok, _, _, _} = CommonAPI.follow(other_user, following)
{:ok, follower, following, _activity} = CommonAPI.follow(following, follower)
{:ok, following, follower, _activity} = CommonAPI.follow(following, follower)
result =
StreamerView.render(
@ -76,7 +76,7 @@ test "hides follows count for :hide_follows and :hide_follows_count" do
follower = insert(:user)
{:ok, _, _, _} = CommonAPI.follow(other_user, following)
{:ok, follower, following, _activity} = CommonAPI.follow(following, follower)
{:ok, following, follower, _activity} = CommonAPI.follow(following, follower)
result =
StreamerView.render(