dav_events.config: fixed tests and improved FieldInitial
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user