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
5efabb1c
Commit
5efabb1c
authored
Mar 16, 2015
by
Mark Hoeber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7307 from edx/markhoeber-enrollment-api-doc-fix
Add Mocks to Enrollment API Doc Config
parents
dadc47c2
4ba4f414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
docs/en_us/enrollment_api/source/conf.py
+31
-0
No files found.
docs/en_us/enrollment_api/source/conf.py
View file @
5efabb1c
...
...
@@ -7,6 +7,37 @@
import
os
from
path
import
path
import
sys
import
mock
MOCK_MODULES
=
[
'ipware'
,
'ip'
,
'ipware.ip'
,
'get_ip'
,
'pygeoip'
,
'ipaddr'
,
'django_countries'
,
'fields'
,
'django_countries.fields'
,
'opaque_keys'
,
'opaque_keys.edx'
,
'opaque_keys.edx.keys'
,
'CourseKey'
,
'UsageKey'
,
'BlockTypeKey'
,
'opaque_keys.edx.locations'
,
'SlashSeparatedCourseKey'
,
'Location'
,
'opaque_keys.edx.locator'
,
'Locator'
,
'south'
,
'modelsinspector'
,
'south.modelsinspector'
,
'add_introspection_rules'
]
for
mod_name
in
MOCK_MODULES
:
sys
.
modules
[
mod_name
]
=
mock
.
Mock
()
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'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