15
15
16
16
17
17
def test_binaryfield (app , db ):
18
-
19
18
with app .test_request_context ("/" ):
20
19
21
20
class Binary (db .Document ):
@@ -28,9 +27,7 @@ class Binary(db.Document):
28
27
29
28
30
29
def test_choices_coerce (app , db ):
31
-
32
30
with app .test_request_context ("/" ):
33
-
34
31
CHOICES = ((1 , "blue" ), (2 , "red" ))
35
32
36
33
class MyChoices (db .Document ):
@@ -44,9 +41,7 @@ class MyChoices(db.Document):
44
41
45
42
46
43
def test_list_choices_coerce (app , db ):
47
-
48
44
with app .test_request_context ("/" ):
49
-
50
45
CHOICES = ((1 , "blue" ), (2 , "red" ))
51
46
52
47
class MyChoices (db .Document ):
@@ -60,7 +55,6 @@ class MyChoices(db.Document):
60
55
61
56
62
57
def test_emailfield (app , db ):
63
-
64
58
with app .test_request_context ("/" ):
65
59
66
60
class Email (db .Document ):
@@ -343,7 +337,6 @@ class DogOwner(db.Document):
343
337
344
338
def test_modelradiofield (app , db ):
345
339
with app .test_request_context ("/" ):
346
-
347
340
choices = [("male" , "Male" ), ("female" , "Female" ), ("other" , "Other" )]
348
341
349
342
class Poll (db .Document ):
@@ -383,7 +376,6 @@ class User(db.Document):
383
376
384
377
385
378
def test_unique_with (app , db ):
386
-
387
379
with app .test_request_context ("/" ):
388
380
389
381
class Item (db .Document ):
0 commit comments