Skip to content

Commit 6d66cb4

Browse files
committed
english
1 parent fc0dc33 commit 6d66cb4

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

quora/quora.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,23 +186,23 @@ def scrape_question_stats(soup):
186186
@staticmethod
187187
def get_user_stats(u):
188188
""" (str) -> dict
189-
Depreciated. Use the User class.
189+
Deprecated. Use the User class.
190190
"""
191191
from user import User
192192
return User.get_user_stats(u)
193193

194194
@staticmethod
195195
def get_user_activity(u):
196196
""" (str) -> dict
197-
Depreciated. Use the User class.
197+
Deprecated. Use the User class.
198198
"""
199199
from user import User
200200
return User.get_user_activity(u)
201201

202202
@staticmethod
203203
def get_activity(u):
204204
""" (str) -> dict
205-
Depreciated. Use the User class.
205+
Deprecated. Use the User class.
206206
"""
207207
from user import User
208208
return User.get_activity(u)

tests/test_user_statistics.py

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
from quora import User
22

33
expected_user_stat_keys = ['answers',
4-
'edits',
5-
'followers',
6-
'following',
7-
'questions',
8-
'name',
9-
'username'
10-
]
4+
'edits',
5+
'followers',
6+
'following',
7+
'questions',
8+
'name',
9+
'username']
1110

1211
class TestUserStatistics:
1312
test_stats = []
1413
test_stats.append(User('Christopher-J-Su').stats)
15-
# test_stats.append(User('Aaron-Ounn').stats
16-
# test_stats.append(User('Elynn-Lee').stats
17-
# test_stats.append(User('Jennifer-Apacible-1').stats)
18-
# TODO: add tests for nonexistant users and other edge cases
14+
# TODO: add tests for nonexistent users and other edge cases
1915

2016
def test_exists(self):
2117
for stat in self.test_stats:

0 commit comments

Comments
 (0)