Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromansible/awx

Commit95603bb

Browse files
jbradberryshanemcd
authored andcommitted
Handle a change in the error message for BooleanField
relatedencode/django-rest-framework#5881
1 parent8ec1f35 commit95603bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎awx/sso/tests/unit/test_fields.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def test_internal_value_valid(self, data, expected):
3333

3434
@pytest.mark.parametrize("data, expected", [
3535
({'remove':'blah','saml_attr':'foobar'},
36-
ValidationError('"blah" is not a valid boolean.')),
36+
ValidationError('Must be a valid boolean.')),
3737
({'remove':True,'saml_attr':False},
3838
ValidationError('Not a valid string.')),
3939
({'remove':True,'saml_attr':False,'foo':'bar','gig':'ity'},
4040
ValidationError('Invalid key(s): "foo", "gig".')),
4141
({'remove_admins':True,'saml_admin_attr':False},
4242
ValidationError('Not a valid string.')),
4343
({'remove_admins':'blah','saml_admin_attr':'foobar'},
44-
ValidationError('"blah" is not a valid boolean.')),
44+
ValidationError('Must be a valid boolean.')),
4545
])
4646
deftest_internal_value_invalid(self,data,expected):
4747
field=SAMLOrgAttrField()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp