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,7 +31,7 @@ def validate_label(value):
3131 """
3232 match = re .match (r'^[a-z0-9-]+$' , value )
3333 if not match :
34- raise ValidationError ("Can only contain a-z (lowercase), 0-9 and hypens " )
34+ raise ValidationError ("Can only contain a-z (lowercase), 0-9 and hyphens " )
3535
3636
3737class AuditedModel (models .Model ):
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def validate_id_is_docker_compatible(value):
3535 """
3636 match = re .match (r'^[a-z0-9-]+$' , value )
3737 if not match :
38- raise ValidationError ("App name can only contain a-z (lowercase), 0-9 and hypens " )
38+ raise ValidationError ("App name can only contain a-z (lowercase), 0-9 and hyphens " )
3939
4040
4141def validate_app_structure (value ):
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def test_app_errors(self, mock_requests):
153153 response = self .client .post (url , body )
154154 self .assertContains (
155155 response ,
156- 'App name can only contain a-z (lowercase), 0-9 and hypens ' ,
156+ 'App name can only contain a-z (lowercase), 0-9 and hyphens ' ,
157157 status_code = 400
158158 )
159159 url = '/v2/apps'
You can’t perform that action at this time.
0 commit comments