Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
7dcc8fd7
Commit
7dcc8fd7
authored
9 months ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Fix broken unit tests preventing build of Linux
parent
a035ce8e
No related branches found
Branches containing commit
No related tags found
1 merge request
!319
Fix broken unit tests preventing build of Linux
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/model/reftek_data/test_reftek.py
+6
-2
6 additions, 2 deletions
tests/model/reftek_data/test_reftek.py
with
6 additions
and
2 deletions
tests/model/reftek_data/test_reftek.py
+
6
−
2
View file @
7dcc8fd7
...
...
@@ -90,7 +90,9 @@ class TestReftek(BaseTestCase):
}
expected_waveform
=
[
'
DS1-1
'
,
'
DS1-2
'
,
'
DS1-3
'
]
obj
=
RT130
(
**
args
)
self
.
assertEqual
(
obj
.
found_data_streams
,
[
9
,
1
,
1
])
# The found data streams are in different order between MacOS and
# Linux, so we can't use a normal equality check.
self
.
assertCountEqual
(
obj
.
found_data_streams
,
[
9
,
1
,
1
])
self
.
assertEqual
(
obj
.
data_set_ids
,
[(
'
92EB
'
,
'
25
'
)])
self
.
assertEqual
(
list
(
obj
.
stream_header_by_data_set_id_chan
[(
'
92EB
'
,
'
25
'
)].
keys
()),
...
...
@@ -186,7 +188,9 @@ class TestReftek(BaseTestCase):
'
GPS Lk/Unlk
'
,
'
Clk Phase Err
'
,
'
Event DS1
'
]
expected_waveform
=
[
'
DS1-1
'
,
'
DS1-2
'
,
'
DS1-3
'
]
obj
=
RT130
(
**
args
)
self
.
assertEqual
(
obj
.
found_data_streams
,
[
9
,
1
,
1
,
2
,
2
])
# The found data streams are in different order between MacOS and
# Linux, so we can't use a normal equality check.
self
.
assertCountEqual
(
obj
.
found_data_streams
,
[
9
,
1
,
1
,
2
,
2
])
self
.
assertEqual
(
obj
.
data_set_ids
,
[(
'
92EB
'
,
'
25
'
),
(
'
98AD
'
,
'
0
'
)])
self
.
assertEqual
(
obj
.
selected_data_set_id
,
(
'
92EB
'
,
'
25
'
))
self
.
assertEqual
(
...
...
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