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
779b3817
Commit
779b3817
authored
3 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
TST: Skip sendmail test on Windows
parent
f54451c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!128
MNT: Added a warning when column metadata is not configured, and a better...
,
!124
Fix unit tests on Windows
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unittests/test_sss_helper.py
+3
-2
3 additions, 2 deletions
unittests/test_sss_helper.py
unittests/test_utils.py
+1
-1
1 addition, 1 deletion
unittests/test_utils.py
with
4 additions
and
3 deletions
unittests/test_sss_helper.py
+
3
−
2
View file @
779b3817
...
...
@@ -2,7 +2,7 @@ import subprocess
from
email
import
message_from_file
,
policy
from
os
import
listdir
,
remove
from
os.path
import
abspath
,
dirname
,
exists
,
isfile
,
join
import
platform
import
linkahead
as
db
from
caosadvancedtools.serverside.helper
import
(
NameCollector
,
get_data
,
get_file_via_download
,
...
...
@@ -85,7 +85,8 @@ def test_send_mail():
assert
msg
[
"
Subject
"
]
==
"
the subject
"
assert
msg
.
get_content
()
==
"
hello!
\n
"
# skip on windows (has no sendmail)
@mark.skipif
(
platform
.
system
()
==
"
Windows
"
)
def
test_send_mail_error
():
with
raises
(
subprocess
.
CalledProcessError
):
send_mail
(
"
me@example.com
"
,
"
you@example.com
"
,
"
the subject
"
,
"
hello!
"
,
...
...
This diff is collapsed.
Click to expand it.
unittests/test_utils.py
+
1
−
1
View file @
779b3817
...
...
@@ -77,7 +77,7 @@ class ReferencesBaseTest(BaseMockUpTest):
files
=
get_referenced_files
(
"
test.npy
"
,
prefix
=
None
,
filename
=
None
,
location
=
None
)
self
.
assertEqual
(
len
(
files
),
1
)
self
.
assertEqual
(
os
.
path
.
join
(
files
[
0
].
path
,
"
some
"
,
"
path
"
,
"
test.npy
"
)
)
self
.
assertEqual
(
files
[
0
].
path
,
"
/
some
/path/
test.npy
"
)
log
=
self
.
get_log
()
assert
"
FIND file which
"
in
log
assert
"
does not allow a search
"
not
in
log
...
...
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