Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-notes-api
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-notes-api
Commits
0d7e9012
Commit
0d7e9012
authored
Nov 19, 2014
by
Oleg Marshev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test.
parent
d9cfbc65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
.gitignore
+2
-1
notesapi/v1/tests/test_views.py
+1
-1
notesapi/v1/views.py
+0
-1
No files found.
.gitignore
View file @
0d7e9012
# Python artifacts
*.pyc
# Coverage reports
#
Tests /
Coverage reports
.coverage
.tox
notesapi/v1/tests/test_views.py
View file @
0d7e9012
...
...
@@ -142,7 +142,7 @@ class AnnotationViewTests(APITestCase):
"""
Ensure save was without refresh.
"""
url
=
reverse
(
'api:v1:annotations'
)
+
'?refresh=
tru
e'
url
=
reverse
(
'api:v1:annotations'
)
+
'?refresh=
fals
e'
response
=
self
.
client
.
post
(
url
,
{},
format
=
'json'
,
**
self
.
headers
)
ann_mock
.
return_value
.
save
.
assert_called_once_with
(
refresh
=
False
)
...
...
notesapi/v1/views.py
View file @
0d7e9012
import
requests
import
json
from
django.http
import
HttpResponse
from
django.conf
import
settings
...
...
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