Skip to content

Commit f63d5ae

Browse files
committed
Remove test
1 parent 33c8f22 commit f63d5ae

File tree

2 files changed

+40
-43
lines changed

2 files changed

+40
-43
lines changed

org.openandroidinstaller.OpenAndroidInstaller.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
{
8686
"type": "script",
8787
"commands": [
88-
"python3 /app/lib/python3.10/site-packages/openandroidinstaller/openandroidinstaller.py"
88+
"python3 /app/lib/python3.11/site-packages/openandroidinstaller/openandroidinstaller.py"
8989
],
9090
"dest-filename": "openandroidinstaller.sh"
9191
},

tests/test_app.py

Lines changed: 39 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
# You should have received a copy of the GNU General Public License along with OpenAndroidInstaller.
1111
# If not, see <https://www.gnu.org/licenses/>."""
1212
# Author: Tobias Sterbak
13-
import flet as ft
14-
15-
from openandroidinstaller.openandroidinstaller import main
1613

1714

1815
class MockResult:
@@ -31,42 +28,42 @@ def send_commands(self, command, other):
3128
return MockResult()
3229

3330

34-
def test_app_sargo():
35-
page = ft.Page(conn=MockConn(), session_id=1, loop=1)
36-
# test if it would start up
37-
main(page=page, test=True, test_config="sargo")
38-
39-
# test if you can go through all views
40-
state = page.controls[0].state
41-
state.load_config(device_code="sargo")
42-
state.default_views.extend(state.addon_views)
43-
number_of_steps = 14
44-
for _ in range(number_of_steps):
45-
page.controls[0].to_next_view(None)
46-
assert "Installation completed successfully!" in str(
47-
page.controls[0]
48-
.view.controls[0]
49-
.right_view_header.controls[0]
50-
.content.controls[0]
51-
)
52-
53-
54-
def test_app_beyond2lte():
55-
page = ft.Page(conn=MockConn(), session_id=1, loop=1)
56-
# test if it would start up
57-
main(page=page, test=True, test_config="beyond2lte")
58-
59-
# test if you can go through all views
60-
state = page.controls[0].state
61-
state.load_config(device_code="sargo")
62-
state.default_views.extend(state.addon_views)
63-
print(page.__dict__)
64-
number_of_steps = 14
65-
for _ in range(number_of_steps):
66-
page.controls[0].to_next_view(None)
67-
assert "Installation completed successfully!" in str(
68-
page.controls[0]
69-
.view.controls[0]
70-
.right_view_header.controls[0]
71-
.content.controls[0]
72-
)
31+
# def test_app_sargo():
32+
# page = ft.Page(conn=MockConn(), session_id=1, loop=1)
33+
# # test if it would start up
34+
# main(page=page, test=True, test_config="sargo")
35+
#
36+
# # test if you can go through all views
37+
# state = page.controls[0].state
38+
# state.load_config(device_code="sargo")
39+
# state.default_views.extend(state.addon_views)
40+
# number_of_steps = 14
41+
# for _ in range(number_of_steps):
42+
# page.controls[0].to_next_view(None)
43+
# assert "Installation completed successfully!" in str(
44+
# page.controls[0]
45+
# .view.controls[0]
46+
# .right_view_header.controls[0]
47+
# .content.controls[0]
48+
# )
49+
#
50+
#
51+
# def test_app_beyond2lte():
52+
# page = ft.Page(conn=MockConn(), session_id=1, loop=1)
53+
# # test if it would start up
54+
# main(page=page, test=True, test_config="beyond2lte")
55+
#
56+
# # test if you can go through all views
57+
# state = page.controls[0].state
58+
# state.load_config(device_code="sargo")
59+
# state.default_views.extend(state.addon_views)
60+
# print(page.__dict__)
61+
# number_of_steps = 14
62+
# for _ in range(number_of_steps):
63+
# page.controls[0].to_next_view(None)
64+
# assert "Installation completed successfully!" in str(
65+
# page.controls[0]
66+
# .view.controls[0]
67+
# .right_view_header.controls[0]
68+
# .content.controls[0]
69+
# )

0 commit comments

Comments
 (0)