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
53524efb
Commit
53524efb
authored
Sep 22, 2015
by
Brian Beggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for rebasing of the release on 2015-09-23
parent
322db6de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
lms/djangoapps/teams/tests/test_views.py
+5
-6
openedx/core/lib/api/fields.py
+1
-3
No files found.
lms/djangoapps/teams/tests/test_views.py
View file @
53524efb
# -*- coding: utf-8 -*-
"""Tests for the teams API at the HTTP request level."""
import
json
import
pytz
from
datetime
import
datetime
import
pytz
from
dateutil
import
parser
import
ddt
from
elasticsearch.exceptions
import
ConnectionError
from
mock
import
patch
from
search.search_engine_base
import
SearchEngine
from
django.core.urlresolvers
import
reverse
from
django.conf
import
settings
from
django.db.models.signals
import
post_save
from
django.utils
import
translation
from
nose.plugins.attrib
import
attr
from
rest_framework.test
import
APITestCase
,
APIClient
from
xmodule.modulestore.tests.django_utils
import
SharedModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
courseware.tests.factories
import
StaffFactory
from
common.test.utils
import
skip_signal
from
student.tests.factories
import
UserFactory
,
AdminFactory
,
CourseEnrollmentFactory
from
student.models
import
CourseEnrollment
from
util.testing
import
EventTestMixin
from
xmodule.modulestore.tests.django_utils
import
SharedModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
.factories
import
CourseTeamFactory
,
LAST_ACTIVITY_AT
from
..models
import
CourseTeamMembership
from
..search_indexes
import
CourseTeamIndexer
,
CourseTeam
,
course_team_post_save_callback
from
django_comment_common.models
import
Role
,
FORUM_ROLE_COMMUNITY_TA
from
django_comment_common.utils
import
seed_permissions_roles
...
...
@@ -130,7 +129,7 @@ class TestDashboard(SharedModuleStoreTestCase):
team
.
add_user
(
self
.
user
)
# Check the query count on the dashboard again
with
self
.
assertNumQueries
(
21
):
with
self
.
assertNumQueries
(
19
):
self
.
client
.
get
(
self
.
teams_url
)
def
test_bad_course_id
(
self
):
...
...
openedx/core/lib/api/fields.py
View file @
53524efb
...
...
@@ -28,9 +28,7 @@ class ExpandableField(Field):
if
field
.
source
is
None
:
field
.
bind
(
self
.
field_name
,
self
)
# Exclude fields that should not be expanded in the nested field
if
should_expand
:
nested_expand_fields
=
set
(
field
.
context
.
get
(
"expand"
,
[]))
self
.
expanded
.
context
[
"expand"
]
=
list
(
nested_expand_fields
-
self
.
exclude_expand_fields
)
self
.
expanded
.
context
[
"expand"
]
=
set
(
field
.
context
.
get
(
"expand"
,
[]))
return
field
.
to_representation
(
obj
)
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