Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-val
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-val
Commits
eabdb278
Commit
eabdb278
authored
Sep 16, 2014
by
Dave St.Germain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tests to reflect fixture
parent
8ce8634b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
edxval/tests/test_api.py
+4
-4
edxval/tests/test_views.py
+0
-1
No files found.
edxval/tests/test_api.py
View file @
eabdb278
...
...
@@ -88,13 +88,13 @@ class CreateProfileTest(TestCase):
Tests the creation of a profile
"""
result
=
api
.
create_profile
(
constants
.
PROFILE_DICT_DESKTOP
)
profiles
=
Profile
.
objects
.
all
(
)
self
.
assertEqual
(
len
(
profiles
),
1
)
profiles
=
list
(
Profile
.
objects
.
all
()
)
self
.
assertEqual
(
len
(
profiles
),
6
)
self
.
assertEqual
(
profiles
[
0
]
.
profile_name
,
profiles
[
-
1
]
.
profile_name
,
constants
.
PROFILE_DICT_DESKTOP
.
get
(
'profile_name'
)
)
self
.
assertEqual
(
len
(
profiles
),
1
)
self
.
assertEqual
(
len
(
profiles
),
6
)
self
.
assertEqual
(
"desktop"
,
result
)
@data
(
...
...
edxval/tests/test_views.py
View file @
eabdb278
...
...
@@ -404,7 +404,6 @@ class VideoListTest(APIAuthTestCase):
Test that youtube is a valid profile.
"""
url
=
reverse
(
'video-list'
)
Profile
.
objects
.
create
(
**
constants
.
PROFILE_DICT_YOUTUBE
)
video_data
=
dict
(
encoded_videos
=
[
...
...
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