Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Commits
82f93cb0
Verified
Commit
82f93cb0
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
TST: skip send_mail test
parent
798639d0
No related branches found
No related tags found
1 merge request
!22
Release 0.3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.docker/pycaosdb.ini
+0
-3
0 additions, 3 deletions
.docker/pycaosdb.ini
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
unittests/test_sss_helper.py
+5
-1
5 additions, 1 deletion
unittests/test_sss_helper.py
with
5 additions
and
5 deletions
.docker/pycaosdb.ini
+
0
−
3
View file @
82f93cb0
...
...
@@ -14,6 +14,3 @@ ssl_insecure=True
timeout
=
500
[Container]
debug
=
0
[Misc]
sendmail
=
/usr/local/bin/sendmail_to_file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
0
−
1
View file @
82f93cb0
...
...
@@ -115,5 +115,4 @@ unittest:
stage
:
unittest
image
:
$CI_REGISTRY_IMAGE
script
:
-
cp .docker/pycaosdb.ini .
-
tox
This diff is collapsed.
Click to expand it.
unittests/test_sss_helper.py
+
5
−
1
View file @
82f93cb0
from
os.path
import
abspath
,
dirname
,
join
,
isfile
,
exists
from
os
import
listdir
,
remove
from
email
import
message_from_file
,
policy
from
caosdb
import
configure_connection
,
RecordType
from
pytest
import
mark
from
caosdb
import
configure_connection
,
RecordType
,
get_config
from
caosdb.connection.mockup
import
(
MockUpServerConnection
,
MockUpResponse
)
from
caosadvancedtools.serverside.helper
import
(
parse_arguments
,
get_data
,
init_data_model
,
send_mail
)
...
...
@@ -60,6 +61,9 @@ def test_init_data_model():
assert
rt
.
id
==
1234
@mark.skipif
(
"
Misc
"
not
in
get_config
()
or
"
sendmail
"
not
in
get_config
()[
"
Misc
"
],
reason
=
"
sendmail client not defined
"
)
def
test_send_mail
():
assert
len
(
get_tmp_mails
())
==
0
send_mail
(
"
me@example.com
"
,
"
you@example.com
"
,
"
the subject
"
,
"
hello!
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment