From 80922f32a8517b60ff6e7c3c08d7635af861b2e9 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Tue, 24 Sep 2024 23:39:25 -0700 Subject: [PATCH] test: just remove existing ones --- .github/workflows/functional-test.yml | 8 ++--- test/functional/android/hw_actions_tests.py | 29 ---------------- .../android/network_connection_tests.py | 34 ------------------- 3 files changed, 3 insertions(+), 68 deletions(-) delete mode 100644 test/functional/android/hw_actions_tests.py delete mode 100644 test/functional/android/network_connection_tests.py diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index ed584335..ada561b9 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -95,14 +95,12 @@ jobs: name: func_test_android1 - target: test/functional/android/keyboard_tests.py test/functional/android/location_tests.py name: func_test_android2 - - target: test/functional/android/appium_service_tests.py + - target: test/functional/android/appium_service_tests.py test/functional/android/chrome_tests.py name: func_test_android3 - - target: test/functional/android/finger_print_tests.py test/functional/android/screen_record_tests.py test/functional/android/settings_tests.py test/functional/android/chrome_tests.py + - target: test/functional/android/finger_print_tests.py test/functional/android/screen_record_tests.py test/functional/android/settings_tests.py name: func_test_android4 - - target: test/functional/android/remote_fs_tests.py + - target: test/functional/android/remote_fs_tests.py test/functional/android/log_event_tests.py name: func_test_android5 - - target: test/functional/android/network_connection_tests.py test/functional/android/log_event_tests.py test/functional/android/hw_actions_tests.py - name: func_test_android8 runs-on: ubuntu-latest diff --git a/test/functional/android/hw_actions_tests.py b/test/functional/android/hw_actions_tests.py deleted file mode 100644 index 4646d254..00000000 --- a/test/functional/android/hw_actions_tests.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from time import sleep - -from .helper.test_helper import BaseTestCase - - -class TestHwActions(BaseTestCase): - def test_lock(self) -> None: - self.driver.lock(-1) - sleep(10) - try: - assert self.driver.is_locked() - finally: - self.driver.unlock() - assert not self.driver.is_locked() diff --git a/test/functional/android/network_connection_tests.py b/test/functional/android/network_connection_tests.py deleted file mode 100644 index db1ce63b..00000000 --- a/test/functional/android/network_connection_tests.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import pytest - -from appium.webdriver.connectiontype import ConnectionType - -from ..test_helper import is_ci -from .helper.test_helper import BaseTestCase - - -class TestNetworkConnection(BaseTestCase): - def test_get_network_connection(self) -> None: - nc = self.driver.network_connection - assert isinstance(nc, int) - - @pytest.mark.skipif(condition=is_ci(), reason='Need to fix flaky test during running on CI') - def test_set_network_connection(self) -> None: - try: - self.driver.set_network_connection(ConnectionType.DATA_ONLY) - except Exception: - assert False, "Should not raise any exceptions"