dav_events.config: fixed tests and improved FieldInitial

This commit is contained in:
2026-06-11 16:17:35 +02:00
parent 8ddabd3189
commit 9c513b3dee
2 changed files with 9 additions and 5 deletions
+4 -2
View File
@@ -83,8 +83,10 @@ class FieldInitialTestCase(TestCase):
def test_invalid_constraints(self):
invalid_constraints = (
'sport', # Not in <key><operator><value> form
'sport ==hiking' # Blanks before operator
'sport== hiking' # Blanks after operator
'sport ==hiking', # Blank before operator
'sport== hiking', # Blank after operator
'sport=hiking', # Invalid operator
'sport===hiking', # Invalid operator
'sport!=hiking', # Invalid operator
'==hiking', # Missing key
)