File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class VersionSlugField(models.CharField):
41
41
allowed_punctuation = '-._'
42
42
allowed_chars = string .lowercase + string .digits + allowed_punctuation
43
43
placeholder = '-'
44
- fallback_slug = 'unkown '
44
+ fallback_slug = 'unknown '
45
45
test_pattern = re .compile ('^{pattern}$' .format (pattern = VERSION_SLUG_REGEX ))
46
46
47
47
def __init__ (self , * args , ** kwargs ):
Original file line number Diff line number Diff line change @@ -39,18 +39,18 @@ def test_placeholder_as_name(self):
39
39
version = Version .objects .create (
40
40
verbose_name = '-' ,
41
41
project = self .pip )
42
- self .assertEqual (version .slug , 'unkown ' )
42
+ self .assertEqual (version .slug , 'unknown ' )
43
43
44
44
def test_multiple_empty_names (self ):
45
45
version = Version .objects .create (
46
46
verbose_name = '-' ,
47
47
project = self .pip )
48
- self .assertEqual (version .slug , 'unkown ' )
48
+ self .assertEqual (version .slug , 'unknown ' )
49
49
50
50
version = Version .objects .create (
51
51
verbose_name = '-./.-' ,
52
52
project = self .pip )
53
- self .assertEqual (version .slug , 'unkown_a ' )
53
+ self .assertEqual (version .slug , 'unknown_a ' )
54
54
55
55
def test_uniqueness (self ):
56
56
version = Version .objects .create (
You can’t perform that action at this time.
0 commit comments