Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
fdd66e53
Commit
fdd66e53
authored
5 years ago
by
Ned Batchelder
Browse files
Options
Downloads
Patches
Plain Diff
Adjust the expected error message for DRF 3.7.7
parent
de8e158c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openedx/core/djangoapps/user_api/accounts/tests/test_views.py
+1
-1
1 addition, 1 deletion
...edx/core/djangoapps/user_api/accounts/tests/test_views.py
openedx/core/djangoapps/user_api/preferences/tests/test_api.py
+1
-1
1 addition, 1 deletion
...dx/core/djangoapps/user_api/preferences/tests/test_api.py
with
2 additions
and
2 deletions
openedx/core/djangoapps/user_api/accounts/tests/test_views.py
+
1
−
1
View file @
fdd66e53
...
...
@@ -551,7 +551,7 @@ class TestAccountsAPI(CacheIsolationTestCase, UserAPITestCase):
(
"
level_of_education
"
,
"
none
"
,
u
"
ȻħȺɍłɇs
"
,
u
'"
ȻħȺɍłɇs
"
is not a valid choice.
'
),
(
"
country
"
,
"
GB
"
,
"
XY
"
,
u
'"
XY
"
is not a valid choice.
'
),
(
"
year_of_birth
"
,
2009
,
"
not_an_int
"
,
u
"
A valid integer is required.
"
),
(
"
name
"
,
"
bob
"
,
"
z
"
*
256
,
u
"
Ensure this
value
has
at
mo
st
255 characters
(it has 256)
.
"
),
(
"
name
"
,
"
bob
"
,
"
z
"
*
256
,
u
"
Ensure this
field
has
no
mo
re than
255 characters.
"
),
(
"
name
"
,
u
"
ȻħȺɍłɇs
"
,
"
"
,
u
"
The name field must be at least 1 character long.
"
),
(
"
goals
"
,
"
Smell the roses
"
),
(
"
mailing_address
"
,
"
Sesame Street
"
),
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/user_api/preferences/tests/test_api.py
+
1
−
1
View file @
fdd66e53
...
...
@@ -470,7 +470,7 @@ def get_expected_validation_developer_message(preference_key, preference_value):
preference_key
=
preference_key
,
preference_value
=
preference_value
,
error
=
{
"
key
"
:
[
u
"
Ensure this
value
has
at
mo
st
255 characters
(it has 256)
.
"
]
"
key
"
:
[
u
"
Ensure this
field
has
no
mo
re than
255 characters.
"
]
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment