Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flexpart
Flex Extract
Commits
f9f7b3f8
Commit
f9f7b3f8
authored
Sep 2, 2018
by
Anne Philipp
Browse files
Options
Downloads
Patches
Plain Diff
start using markers for testcases
parent
70a0becc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/pythontest/TestTools.py
+4
-4
4 additions, 4 deletions
python/pythontest/TestTools.py
python/pythontest/pytest.ini
+4
-0
4 additions, 0 deletions
python/pythontest/pytest.ini
with
8 additions
and
4 deletions
python/pythontest/TestTools.py
+
4
−
4
View file @
f9f7b3f8
...
...
@@ -3,7 +3,6 @@
import
os
import
sys
#import unittest
import
subprocess
import
pipes
import
pytest
...
...
@@ -117,11 +116,12 @@ class TestTools():
def
test_make_dir
(
self
):
assert
True
@pytest.mark.msuser
def
test_success_put_file_to_ecserver
(
self
):
ecuid
=
os
.
environ
[
'
ECUID
'
]
#'km4a'
ecgid
=
os
.
environ
[
'
ECGID
'
]
#'at'
ecuid
=
os
.
environ
[
'
ECUID
'
]
ecgid
=
os
.
environ
[
'
ECGID
'
]
put_file_to_ecserver
(
'
TestData/
'
,
'
testfile.txt
'
,
'
ecgate
'
,
ecuid
,
ecgid
)
assert
subprocess
.
call
([
'
ssh
'
,
'
km4a
@ecaccess.ecmwf.int
'
,
assert
subprocess
.
call
([
'
ssh
'
,
ecuid
+
'
@ecaccess.ecmwf.int
'
,
'
test -e
'
+
pipes
.
quote
(
'
/home/ms/
'
+
ecgid
+
'
/
'
+
ecuid
)])
==
0
...
...
This diff is collapsed.
Click to expand it.
python/pythontest/pytest.ini
0 → 100644
+
4
−
0
View file @
f9f7b3f8
# content of pytest.ini
[pytest]
markers
=
memberstate: Test that can be executed only as a member-state user. Password required.
\ No newline at end of file
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