[CHORE]: py310-dj40 1 test failing #211

Closed
opened 2024-12-17 02:31:14 +00:00 by imAsparky · 1 comment
imAsparky commented 2024-12-17 02:31:14 +00:00 (Migrated from github.com)

What is the chore?

self = <tests.test_model_field.TestValidation testMethod=test_charfield_not_editable>

    def test_charfield_not_editable(self):
        f = TagMeCharField(editable=False)
        # All tag-me tags are stored with a trailing comma to ensure correct
        # parsing to and from db
        value = "testing,"

>       assert f.clean(value, None) == value

self = <django.core.validators.MaxLengthValidator object at 0x7f0c3d4b3cd0>, a = 8, b = None

    def compare(self, a, b):
>       return a > b
E       TypeError: '>' not supported between instances of 'int' and 'NoneType'

.tox/py310-dj40/lib/python3.10/site-packages/django/core/validators.py:464: TypeError

**What is the chore?** ``` self = <tests.test_model_field.TestValidation testMethod=test_charfield_not_editable> def test_charfield_not_editable(self): f = TagMeCharField(editable=False) # All tag-me tags are stored with a trailing comma to ensure correct # parsing to and from db value = "testing," > assert f.clean(value, None) == value ``` ``` self = <django.core.validators.MaxLengthValidator object at 0x7f0c3d4b3cd0>, a = 8, b = None def compare(self, a, b): > return a > b E TypeError: '>' not supported between instances of 'int' and 'NoneType' .tox/py310-dj40/lib/python3.10/site-packages/django/core/validators.py:464: TypeError ```
imAsparky commented 2025-01-17 06:22:52 +00:00 (Migrated from github.com)

Ive had a look and nothing stands out. Nearing end of support life so not going to burn any more time on it.

Ive had a look and nothing stands out. Nearing end of support life so not going to burn any more time on it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dunwright/django-tag-me#211
No description provided.