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
d4ce82a4
Commit
d4ce82a4
authored
Oct 19, 2017
by
Jeremy Bowman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLAT-1542 No callable queryset method arguments
parent
e2612bdc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/instructor/tests/test_api.py
+2
-2
No files found.
lms/djangoapps/instructor/tests/test_api.py
View file @
d4ce82a4
...
...
@@ -22,7 +22,7 @@ from django.test import RequestFactory, TestCase
from
django.test.utils
import
override_settings
from
pytz
import
UTC
from
django.utils.translation
import
ugettext
as
_
from
mock
import
Mock
,
patch
from
mock
import
Mock
,
NonCallableMock
,
patch
from
nose.plugins.attrib
import
attr
from
nose.tools
import
raises
from
opaque_keys.edx.keys
import
CourseKey
...
...
@@ -485,7 +485,7 @@ class TestInstructorAPIDenyLevels(SharedModuleStoreTestCase, LoginEnrollmentTest
msg: message to display if assertion fails.
"""
mock_problem_key
=
Mock
(
return_value
=
u''
)
mock_problem_key
=
NonCallable
Mock
(
return_value
=
u''
)
mock_problem_key
.
course_key
=
self
.
course
.
id
with
patch
.
object
(
UsageKey
,
'from_string'
)
as
patched_method
:
patched_method
.
return_value
=
mock_problem_key
...
...
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