Skip to content

test: add unit tests for orientation setter - #1289

Open
Dor-bl wants to merge 1 commit into
appium:masterfrom
Dor-bl:test-orientation-7851551434230814572
Open

test: add unit tests for orientation setter#1289
Dor-bl wants to merge 1 commit into
appium:masterfrom
Dor-bl:test-orientation-7851551434230814572

Conversation

@Dor-bl

@Dor-bl Dor-bl commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Description

Adds unit tests for the orientation getter and setter in the Appium Python Client to improve test coverage.

Coverage

The new tests in test/unit/webdriver/webdriver_test.py cover:

  • Getting the orientation (test_orientation_getter)
  • Setting valid orientations ('LANDSCAPE' and 'PORTRAIT') (test_orientation_setter)
  • Setting invalid orientations (e.g. 'INVALID'), asserting that a WebDriverException is raised (test_orientation_setter_invalid)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant