Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
km3py
km3io
Commits
de36e205
Commit
de36e205
authored
5 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Fifo status test and correcte value for channel flag tests
parent
3490f564
No related branches found
No related tags found
1 merge request
!7
Summaryslice status
Pipeline
#7961
passed with warnings
5 years ago
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_daq.py
+3
-4
3 additions, 4 deletions
tests/test_daq.py
with
3 additions
and
4 deletions
tests/test_daq.py
+
3
−
4
View file @
de36e205
...
...
@@ -175,7 +175,6 @@ class TestSummaryslices(unittest.TestCase):
def
test_rates
(
self
):
assert
3
==
len
(
self
.
ss
.
rates
)
@unittest.skip
#TODO
def
test_fifo
(
self
):
s
=
self
.
ss
.
slices
[
0
]
dct_fifo_stat
=
{
...
...
@@ -186,7 +185,7 @@ class TestSummaryslices(unittest.TestCase):
}
for
dom_id
,
fifo_status
in
dct_fifo_stat
.
items
():
frame
=
s
[
s
.
dom_id
==
dom_id
]
assert
get_fifo_statu
s
(
frame
.
fifo
[
0
])
==
fifo_status
assert
any
(
get_channel_flag
s
(
frame
.
fifo
[
0
])
[
0
])
==
fifo_status
def
test_has_udp_trailer
(
self
):
s
=
self
.
ss
.
slices
[
0
]
...
...
@@ -345,7 +344,7 @@ class TestSummaryslices(unittest.TestCase):
frame
=
s
[
s
.
dom_id
==
dom_id
]
assert
any
([
a
==
b
for
a
,
b
in
zip
(
get_channel_flags
(
s
.
hrv
[
0
])[
0
],
hrv_flags
)
for
a
,
b
in
zip
(
get_channel_flags
(
frame
.
hrv
[
0
])[
0
],
hrv_flags
)
])
def
test_fifo_flags
(
self
):
...
...
@@ -386,7 +385,7 @@ class TestSummaryslices(unittest.TestCase):
frame
=
s
[
s
.
dom_id
==
dom_id
]
assert
any
([
a
==
b
for
a
,
b
in
zip
(
get_channel_flags
(
s
.
fifo
[
0
])[
0
],
fifo_flags
)
for
a
,
b
in
zip
(
get_channel_flags
(
frame
.
fifo
[
0
])[
0
],
fifo_flags
)
])
...
...
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