Skip to content

Commit

Permalink
test: add vscode and rpi-connect services to test_all_services test
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Sep 3, 2024
1 parent 1aa5c44 commit f94cfc7
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- feat(lightdm): show a notification when rpi-connect is started to inform user desktop should be installed for the screen sharing to work
- fix(lightdm): install raspberrypi-ui-mods instead of lightdm to activate wayland and enable rpi-connect screen sharing
- test: fix an issue in tests which caused minor random store state changes, ruining snapshot assertions
- test: add vscode and rpi-connect services to `test_all_services` test

## Version 0.15.11

Expand Down
1 change: 1 addition & 0 deletions scripts/test_on_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function cleanup() {
run_on_pod "killall -9 pytest"
}
trap cleanup ERR
trap cleanup SIGINT

copy=${copy:-"False"}
deps=${deps:-"False"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,38 @@
"label": "SSH",
"opacity": null,
"progress": null
},
{
"action": "<function:generate_rpi_connect_menu>",
"background_color": "#68B7FF",
"color": [
1,
1,
1,
1
],
"icon": "",
"is_short": false,
"key": "rpi_connect",
"label": "RPi Connect",
"opacity": null,
"progress": null
},
{
"action": "<function:generate_vscode_menu>",
"background_color": "#68B7FF",
"color": [
1,
1,
1,
1
],
"icon": "󰨞",
"is_short": false,
"key": "vscode",
"label": "VSCode",
"opacity": null,
"progress": null
}
],
"placeholder": "No settings in this category",
Expand Down Expand Up @@ -699,7 +731,9 @@
"Docker": null,
"IP Addresses": 0,
"LightDM": 0,
"RPi Connect": null,
"SSH": 1,
"VSCode": null,
"Voice": 0,
"WiFi": 2
}
Expand All @@ -713,6 +747,13 @@
"is_busy": false,
"is_connected": true
},
"rpi_connect": {
"is_active": true,
"is_downloading": false,
"is_installed": null,
"is_signed_in": null,
"status": null
},
"sensors": {
"light": {
"value": 0.0
Expand Down Expand Up @@ -765,6 +806,13 @@
"is_access_key_set": false,
"selected_engine": "piper"
},
"vscode": {
"is_binary_installed": false,
"is_downloading": false,
"is_logged_in": null,
"is_pending": true,
"status": null
},
"wifi": {
"connections": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,38 @@
"label": "SSH",
"opacity": null,
"progress": null
},
{
"action": "<function:generate_rpi_connect_menu>",
"background_color": "#68B7FF",
"color": [
1,
1,
1,
1
],
"icon": "",
"is_short": false,
"key": "rpi_connect",
"label": "RPi Connect",
"opacity": null,
"progress": null
},
{
"action": "<function:generate_vscode_menu>",
"background_color": "#68B7FF",
"color": [
1,
1,
1,
1
],
"icon": "󰨞",
"is_short": false,
"key": "vscode",
"label": "VSCode",
"opacity": null,
"progress": null
}
],
"placeholder": "No settings in this category",
Expand Down Expand Up @@ -699,7 +731,9 @@
"Docker": null,
"IP Addresses": 0,
"LightDM": 0,
"RPi Connect": null,
"SSH": 1,
"VSCode": null,
"Voice": 0,
"WiFi": 2
}
Expand All @@ -713,6 +747,13 @@
"is_busy": false,
"is_connected": true
},
"rpi_connect": {
"is_active": true,
"is_downloading": false,
"is_installed": null,
"is_signed_in": null,
"status": null
},
"sensors": {
"light": {
"value": 0.0
Expand Down Expand Up @@ -765,6 +806,13 @@
"is_access_key_set": false,
"selected_engine": "piper"
},
"vscode": {
"is_binary_installed": false,
"is_downloading": false,
"is_logged_in": null,
"is_pending": true,
"status": null
},
"wifi": {
"connections": [],
"current_connection": null,
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
'sensors',
'docker',
'ssh',
'vscode',
'rpi_connect',
'voice',
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
pos_hint: {'left': 0.5, 'top': 1}

Label:
text: '\n'.join([i.strip() for i in re.split('(.{15}(?:.{0,10}\s|.{10}))', root.url) if i])
text: '\n'.join([i.strip() for i in re.split(r'(.{15}(?:.{0,10}\s|.{10}))', root.url) if i])
size_hint: 1, None
height: self.texture_size[1]
font_size: dp(18)
Expand Down
2 changes: 1 addition & 1 deletion ubo_app/services/050-vscode/vscode_qrcode_page.kv
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
pos_hint: {'left': 0.5, 'top': 1}

Label:
text: '\n'.join([i.strip() for i in re.split('(.{15}(?:.{0,10}\s|.{10}))', root.url) if i])
text: '\n'.join([i.strip() for i in re.split(r'(.{15}(?:.{0,10}\s|.{10}))', root.url) if i])
size_hint: 1, None
height: self.texture_size[1]
font_size: dp(18)
Expand Down

0 comments on commit f94cfc7

Please sign in to comment.