8000 Fix isort behavior for mock by ki4070ma · Pull Request #432 · appium/python-client · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[settings]
multi_line_output = 3
known_third_party = dateutil,httpretty,pytest,selenium,setuptools,urllib3
known_third_party = dateutil,httpretty,pytest,selenium,setuptools,urllib3,mock
known_first_party = test
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ download and unarchive the source tarball (Appium-Python-Client-X.X.tar.gz).
```
$ python -m isort -rc .
```
- When you use newly 3rd party modules, add it to [.isort.cfg](.isort.cfg) to keep import order correct
- Docstring style: Google Style
- Refer [link](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
- You can customise `CHANGELOG.rst` with commit messages following [.gitchangelog.rc](.gitchangelog.rc)
- It generates readable changelog
- Setup
Expand Down
10 changes: 0 additions & 10 deletions test/functional/android/activities_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,10 @@

import unittest

from appium import webdriver

from .helper import desired_capabilities
from .helper.test_helper import BaseTestCase


class ActivitiesTests(BaseTestCase):
def setUp(self):
desired_caps = desired_capabilities.get_desired_capabilities('ApiDemos-debug.apk')
self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

def tearDown(self):
self.driver.quit()

def test_current_activity(self):
activity = self.driver.current_activity
self.assertEqual('.ApiDemos', activity)
Expand Down
0