Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
pleroma
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
407
Issues
407
List
Boards
Labels
Service Desk
Milestones
Merge Requests
59
Merge Requests
59
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pleroma
pleroma
Commits
c68bcae3
Verified
Commit
c68bcae3
authored
Aug 19, 2020
by
Alexander Strizhakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for sometimes failing tests
parent
3d5d8c05
Pipeline
#29944
passed with stages
in 28 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
test/emails/mailer_test.exs
test/emails/mailer_test.exs
+2
-2
test/tasks/digest_test.exs
test/tasks/digest_test.exs
+2
-0
test/tasks/email_test.exs
test/tasks/email_test.exs
+2
-0
No files found.
test/emails/mailer_test.exs
View file @
c68bcae3
...
...
@@ -14,10 +14,10 @@ defmodule Pleroma.Emails.MailerTest do
subject:
"Pleroma test email"
,
to:
[{
"Test User"
,
"user1@example.com"
}]
}
setup
do
:
clear_config
([
Pleroma
.
Emails
.
Mailer
,
:enabled
])
setup
do
:
clear_config
([
Pleroma
.
Emails
.
Mailer
,
:enabled
]
,
true
)
test
"not send email when mailer is disabled"
do
Pleroma
.
Config
.
put
([
Pleroma
.
Emails
.
Mailer
,
:enabled
],
false
)
clear_config
([
Pleroma
.
Emails
.
Mailer
,
:enabled
],
false
)
Mailer
.
deliver
(
@email
)
:timer
.
sleep
(
100
)
...
...
test/tasks/digest_test.exs
View file @
c68bcae3
...
...
@@ -17,6 +17,8 @@ defmodule Mix.Tasks.Pleroma.DigestTest do
:ok
end
setup
do
:
clear_config
([
Pleroma
.
Emails
.
Mailer
,
:enabled
],
true
)
describe
"pleroma.digest test"
do
test
"Sends digest to the given user"
do
user1
=
insert
(
:user
)
...
...
test/tasks/email_test.exs
View file @
c68bcae3
...
...
@@ -16,6 +16,8 @@ defmodule Mix.Tasks.Pleroma.EmailTest do
:ok
end
setup
do
:
clear_config
([
Pleroma
.
Emails
.
Mailer
,
:enabled
],
true
)
describe
"pleroma.email test"
do
test
"Sends test email with no given address"
do
mail_to
=
Config
.
get
([
:instance
,
:email
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment