mirror of
https://github.com/appium/appium.git
synced 2026-01-14 14:19:56 -06:00
* add initial python sample
* add all of ios and android tests
* apply formatter
* add >=0.28 to avoid version error
* tweak versions of default OS
* convert some tests to unittest based ones
* use single quote mainly
* use {} format style for string
* use format syntax
* apply format and tweak assertions
* use is None
* use assert raise
* speficy a number of elements
* tweak exception
* move app path to helper
* tweak assertion conditions
* remove .close since with open() close file automatically
28 lines
338 B
Markdown
28 lines
338 B
Markdown
# Python Sample Code
|
|
## Setup
|
|
|
|
```
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
## Run tests
|
|
### Run all tests
|
|
|
|
```
|
|
py.test test
|
|
```
|
|
|
|
### Run an arbitrary file
|
|
|
|
```
|
|
py.test test/test_ios_selectors.py
|
|
```
|
|
|
|
## TestCase
|
|
### unittest based
|
|
- test/test_android_create_session.py
|
|
- test/test_ios_create_session.py
|
|
|
|
### pytest based
|
|
- Rest of the above
|