Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
GUDMAP_RBK
RNA-seq
Commits
f388dfc1
Commit
f388dfc1
authored
5 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Fix pytest for align
parent
034a80c7
No related merge requests found
Pipeline
#5852
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow/tests/test_alignReads.py
+10
-10
10 additions, 10 deletions
workflow/tests/test_alignReads.py
with
10 additions
and
10 deletions
workflow/tests/test_alignReads.py
+
10
−
10
View file @
f388dfc1
...
...
@@ -7,8 +7,6 @@ import utils
data_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
logs_output_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
\
'
/../../
'
@pytest.mark.alignData
...
...
@@ -27,15 +25,17 @@ def test_alignData_pe():
@pytest.mark.alignLogs
def
test_alignLogs_se
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs_output_path
,
'
16-1ZX4.align.err
'
))
assert
'
34497376 reads; of these:
'
in
open
(
os
.
path
.
join
(
logs_output_path
,
'
16-1ZX4.align.err
'
)).
readlines
()[
0
]
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs_output_path
,
'
16-1ZX4.align.out
'
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.align.err
'
))
assert
utils
.
count_lines
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.align.err
'
))
==
7
assert
'
34497376 reads; of these:
'
in
open
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.align.err
'
)).
readlines
()[
0
]
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.align.out
'
))
assert
utils
.
count_lines
(
os
.
path
.
join
(
data_output_path
,
'
16-1ZX4.align.out
'
))
==
0
@pytest.mark.alignLogs
def
test_alignLogs_pe
():
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs
_output_path
,
'
Q-Y5JA.align.err
'
))
assert
utils
.
count_lines
(
os
.
path
.
join
(
logs
_output_path
,
'
Q-Y5JA.align.err
'
))
==
7
assert
'
15824858 reads; of these:
'
in
open
(
os
.
path
.
join
(
logs
_output_path
,
'
Q-Y5JA.align.err
'
)).
readlines
()[
0
]
assert
os
.
path
.
exists
(
os
.
path
.
join
(
logs
_output_path
,
'
Q-Y5JA.align.out
'
))
assert
utils
.
count_lines
(
os
.
path
.
join
(
logs
_output_path
,
'
Q-Y5JA.align.out
'
))
==
0
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data
_output_path
,
'
Q-Y5JA.align.err
'
))
assert
utils
.
count_lines
(
os
.
path
.
join
(
data
_output_path
,
'
Q-Y5JA.align.err
'
))
==
7
assert
'
15824858 reads; of these:
'
in
open
(
os
.
path
.
join
(
data
_output_path
,
'
Q-Y5JA.align.err
'
)).
readlines
()[
0
]
assert
os
.
path
.
exists
(
os
.
path
.
join
(
data
_output_path
,
'
Q-Y5JA.align.out
'
))
assert
utils
.
count_lines
(
os
.
path
.
join
(
data
_output_path
,
'
Q-Y5JA.align.out
'
))
==
0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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