File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,28 +31,29 @@ def test_create_mms_resource_with_caption():
3131def test_create_mms_resource_without_url ():
3232 with pytest .raises (ValidationError ) as err :
3333 mms_resource = MmsResource (
34- caption = 'Resource caption' ,
35- )
34+ caption = 'Resource caption' ,
35+ )
3636 assert "Field required" in str (err .value )
3737
3838
3939def test_create_mms_resource_with_caption_too_short ():
4040 with pytest .raises (ValidationError ) as err :
4141 mms_resource = MmsResource (
42- url = 'https://example.com/resource' ,
43- caption = '' ,
44- )
42+ url = 'https://example.com/resource' ,
43+ caption = '' ,
44+ )
4545 assert "String should have at least 1 character" in str (err .value )
4646
4747
4848def test_create_mms_resource_with_caption_too_long ():
4949 with pytest .raises (ValidationError ) as err :
5050 mms_resource = MmsResource (
51- url = 'https://example.com/resource' ,
52- caption = 'a' * 3001 ,
53- )
51+ url = 'https://example.com/resource' ,
52+ caption = 'a' * 3001 ,
53+ )
5454 assert "String should have at most 3000 characters" in str (err .value )
5555
56+
5657def test_create_mms_image ():
5758 mms_model = MmsImage (
5859 to = '1234567890' ,
You can’t perform that action at this time.
0 commit comments