Skip to content

Commit

Permalink
rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Jul 10, 2024
1 parent 2ba917f commit e108c9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
pip install -r ../DeviceFarmScript/requirements.txt
# Create a test bundle folder for upload
mkdir tests
cp ../DeviceFarmScript/iOSMqttApp_test.py tests/
cp ../DeviceFarmScript/mqtt_ios_test.py tests/
find tests/
py.test --collect-only tests/
cd tests/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

appium_server_url = 'http://0.0.0.0:4723/wd/hub'

class TestApp:
class TestMqttIOS:
def setup_method(self):
self.driver = webdriver.Remote(appium_server_url, options=XCUITestOptions().load_capabilities(capabilities))
self.driver.implicitly_wait(10)
Expand All @@ -35,7 +35,7 @@ def teardown_method(self):
"test suite 2"
])

def start_mqtt(self, test_suite):
def test_mqtt(self, test_suite):
sleep(3)
self.perform_click_element('Setup Client and Start')
sleep(3)
Expand All @@ -49,4 +49,4 @@ def perform_click_element(self, element_id):
pytest.skip(f"Element with ID '{element_id}' not found. Skipped the test")

if __name__ == '__main__':
TestApp.start_mqtt()
TestMqttIOS.test_mqtt()

0 comments on commit e108c9a

Please sign in to comment.