Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
883563d8
Commit
883563d8
authored
Dec 12, 2013
by
vagrant
Committed by
Diana Huang
Jan 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test max_calls == 0
parent
a5d1cb35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lms/djangoapps/linkedin/management/commands/tests/test_findusers.py
+11
-0
No files found.
lms/djangoapps/linkedin/management/commands/tests/test_findusers.py
View file @
883563d8
...
...
@@ -173,3 +173,14 @@ class FindUsersTests(unittest.TestCase):
[
i
%
2
==
0
for
i
in
xrange
(
9
)])
self
.
assertEqual
(
users
[
9
]
.
linkedin
.
has_linkedin_account
,
None
)
self
.
assertTrue
(
command
.
stderr
.
getvalue
()
.
startswith
(
"WARNING"
))
@mock.patch
(
'linkedin.management.commands.findusers.get_call_limits'
)
def
test_command_no_api_calls
(
self
,
get_call_limits
):
"""
Test rechecking all users with no API limits.
"""
from
django.core.management.base
import
CommandError
fut
=
findusers
.
Command
()
.
handle
get_call_limits
.
return_value
=
(
0
,
0
,
0
)
with
self
.
assertRaises
(
CommandError
):
fut
(
recheck
=
True
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment