File tree 2 files changed +10
-14
lines changed
2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -186,23 +186,23 @@ def scrape_question_stats(soup):
186
186
@staticmethod
187
187
def get_user_stats (u ):
188
188
""" (str) -> dict
189
- Depreciated . Use the User class.
189
+ Deprecated . Use the User class.
190
190
"""
191
191
from user import User
192
192
return User .get_user_stats (u )
193
193
194
194
@staticmethod
195
195
def get_user_activity (u ):
196
196
""" (str) -> dict
197
- Depreciated . Use the User class.
197
+ Deprecated . Use the User class.
198
198
"""
199
199
from user import User
200
200
return User .get_user_activity (u )
201
201
202
202
@staticmethod
203
203
def get_activity (u ):
204
204
""" (str) -> dict
205
- Depreciated . Use the User class.
205
+ Deprecated . Use the User class.
206
206
"""
207
207
from user import User
208
208
return User .get_activity (u )
Original file line number Diff line number Diff line change 1
1
from quora import User
2
2
3
3
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' ]
11
10
12
11
class TestUserStatistics :
13
12
test_stats = []
14
13
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
19
15
20
16
def test_exists (self ):
21
17
for stat in self .test_stats :
You can’t perform that action at this time.
0 commit comments