Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
88497b15
Commit
88497b15
authored
Apr 09, 2021
by
Tim Powell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rearranged unitest dir & correct file locations
parent
fdff824a
Pipeline
#1207
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
tab_alarms.py
NativeUI/alarm_widgets/tab_alarms.py
+1
-0
cycleSample.json
NativeUI/tests/unittests/fixures/cycleSample.json
+0
-0
personalSample.json
NativeUI/tests/unittests/fixures/personalSample.json
+0
-0
test_NativeUI.py
NativeUI/tests/unittests/test_NativeUI.py
+2
-2
No files found.
NativeUI/alarm_widgets/tab_alarms.py
View file @
88497b15
...
...
@@ -50,6 +50,7 @@ class TabAlarm(QtWidgets.QWidget):
self
.
list
.
acknowledge_all
()
def
update_alarms
(
self
):
print
(
'here'
)
newAlarmPayload
=
self
.
NativeUI
.
get_db
(
"alarms"
)
if
newAlarmPayload
==
[]:
return
...
...
NativeUI/tests/unittests/cycleSample.json
→
NativeUI/tests/unittests/
fixures/
cycleSample.json
View file @
88497b15
File moved
NativeUI/tests/unittests/personalSample.json
→
NativeUI/tests/unittests/
fixures/
personalSample.json
View file @
88497b15
File moved
NativeUI/tests/unittests/test_NativeUI.py
View file @
88497b15
...
...
@@ -92,7 +92,7 @@ def test_must_return_0_for_set_readback_db(widget):
def
test_must_return_0_for_set_cycle_db
(
widget
):
with
open
(
"/home/pi/hev/NativeUI/tests/cycleSample.json"
,
"r"
)
as
f
:
with
open
(
"/home/pi/hev/NativeUI/tests/
unittests/fixtures/
cycleSample.json"
,
"r"
)
as
f
:
cycle_payload
=
json
.
load
(
f
)
assert
widget
.
set_cycle_db
(
cycle_payload
)
==
0
...
...
@@ -127,7 +127,7 @@ def test_must_return_0_for_set_alarms_db(widget):
def
test_must_return_0_for_set_personal_db
(
widget
):
with
open
(
"/home/pi/hev/NativeUI/tests/personalSample.json"
,
"r"
)
as
f
:
with
open
(
"/home/pi/hev/NativeUI/tests/
unittests/fixtures/
personalSample.json"
,
"r"
)
as
f
:
personal_payload
=
json
.
load
(
f
)
assert
widget
.
set_personal_db
(
personal_payload
)
==
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment