Skip to content

Commit

Permalink
feat: make tests running on an ubo pod visible on its screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Jul 2, 2024
1 parent d8d228d commit 5b3f3d5
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## Version 0.15.2

- feat: make tests running on an ubo pod visible on its screen

## Version 0.15.1

- refactor: rename "Update Code CLI" to "Redownload Code" - closes #117
Expand Down
57 changes: 29 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ubo-app"
version = "0.15.1"
version = "0.15.2"
description = "Ubo main app, running on device initialization. A platform for running other apps."
authors = ["Sassan Haradji <sassanh@gmail.com>"]
license = "Apache-2.0"
Expand All @@ -18,10 +18,10 @@ priority = "primary"
python = "^3.11"
psutil = "^5.9.8"
ubo-gui = [
{ version = "^0.11.12", markers = "extra=='default'", extras = [
{ version = "^0.11.15", markers = "extra=='default'", extras = [
"default",
] },
{ version = "^0.11.12", markers = "extra=='dev'", extras = [
{ version = "^0.11.15", markers = "extra=='dev'", extras = [
"dev",
] },
]
Expand Down
7 changes: 7 additions & 0 deletions tests/fixtures/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ def patched_config_set(category: str, key: str, value: str) -> None:

Config.set = patched_config_set

from ubo_app.utils import IS_RPI

if not IS_RPI:
from kivy.config import Config

Config.set('graphics', 'window_state', 'hidden')

import headless_kivy_pi.config

headless_kivy_pi.config.setup_headless_kivy(
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def check() -> None:
assert any(item and item.icon == icon for item in items)

await check()
await asyncio.sleep(0.4)
await asyncio.sleep(1)

return wait_for_menu_item

Expand Down Expand Up @@ -96,6 +96,6 @@ def check() -> None:
assert current_page.placeholder == placeholder

await check()
await asyncio.sleep(0.2)
await asyncio.sleep(1)

return wait_for_empty_menu
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// window-rpi-007
0a7ab1717a9ecaf08509aa306b7a0215270f8f27fb54ad5c3151bfc95b5b0893
40ee8a99fe5e49667126ecd69a859f368ffbd84ba8453f270b499ba4c3640470

0 comments on commit 5b3f3d5

Please sign in to comment.