Skip to content

Commit 001de01

Browse files
committed
Fixed typos and flake8 errors
1 parent 8a5f350 commit 001de01

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def temp_directory():
7676

7777
@pytest.fixture("session")
7878
def local_file(temp_directory):
79-
file = download_file(WEBEX_TEAMS_TEST_FILE_URL, temp_directory)
79+
file = download_file(WEBEX_TEAMS_TEST_FILE_URL, temp_directory)
8080

81-
yield file
81+
yield file
8282

83-
os.remove(file)
83+
os.remove(file)
8484

8585

8686
@pytest.fixture(scope="session")

webexteamssdk/api/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
from .webhooks import WebhooksAPI
4848

4949

50-
5150
class WebexTeamsAPI(object):
5251
"""Webex Teams API wrapper.
5352
@@ -70,7 +69,8 @@ def __init__(self, access_token=None, base_url=DEFAULT_BASE_URL,
7069
"""Create a new WebexTeamsAPI object.
7170
7271
An access token must be used when interacting with the Webex Teams API.
73-
This package supports thre methods for you to provide that access token:
72+
This package supports three methods for you to provide that access
73+
token:
7474
7575
1. You may manually specify the access token via the `access_token`
7676
argument, when creating a new WebexTeamsAPI object.
@@ -103,8 +103,8 @@ def __init__(self, access_token=None, base_url=DEFAULT_BASE_URL,
103103
upon creation in the portal.
104104
client_secret(basestring): The client secret of your integration.
105105
Provided upon creation in the portal.
106-
oauth_code(basestring): The oauth authorization code provided by the
107-
user oauth process.
106+
oauth_code(basestring): The oauth authorization code provided by
107+
the user oauth process.
108108
oauth_redirect_uri(basestring): The redirect URI used in the user
109109
OAuth process.
110110
@@ -134,7 +134,7 @@ def __init__(self, access_token=None, base_url=DEFAULT_BASE_URL,
134134
self.access_tokens = AccessTokensAPI(
135135
self.base_url, object_factory,
136136
single_request_timeout=single_request_timeout
137-
)
137+
)
138138
if not access_token and check_all_not_none(oauth_param_list):
139139
access_token = self.access_tokens.get(client_id=client_id,
140140
client_secret=client_secret,

webexteamssdk/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def open_local_file(file_path):
127127
file_object=file_object,
128128
content_type=content_type)
129129

130+
130131
def check_all_not_none(l):
131132
"""Checks if all the elements in the list are not none.
132133
@@ -142,6 +143,8 @@ def check_all_not_none(l):
142143
return false
143144

144145
return true
146+
147+
145148
def check_type(o, acceptable_types, may_be_none=True):
146149
"""Object is an instance of one of the acceptable types or None.
147150

0 commit comments

Comments
 (0)