1515
1616
1717def test_binaryfield (app , db ):
18-
1918 with app .test_request_context ("/" ):
2019
2120 class Binary (db .Document ):
@@ -28,9 +27,7 @@ class Binary(db.Document):
2827
2928
3029def test_choices_coerce (app , db ):
31-
3230 with app .test_request_context ("/" ):
33-
3431 CHOICES = ((1 , "blue" ), (2 , "red" ))
3532
3633 class MyChoices (db .Document ):
@@ -44,9 +41,7 @@ class MyChoices(db.Document):
4441
4542
4643def test_list_choices_coerce (app , db ):
47-
4844 with app .test_request_context ("/" ):
49-
5045 CHOICES = ((1 , "blue" ), (2 , "red" ))
5146
5247 class MyChoices (db .Document ):
@@ -60,7 +55,6 @@ class MyChoices(db.Document):
6055
6156
6257def test_emailfield (app , db ):
63-
6458 with app .test_request_context ("/" ):
6559
6660 class Email (db .Document ):
@@ -343,7 +337,6 @@ class DogOwner(db.Document):
343337
344338def test_modelradiofield (app , db ):
345339 with app .test_request_context ("/" ):
346-
347340 choices = [("male" , "Male" ), ("female" , "Female" ), ("other" , "Other" )]
348341
349342 class Poll (db .Document ):
@@ -383,7 +376,6 @@ class User(db.Document):
383376
384377
385378def test_unique_with (app , db ):
386-
387379 with app .test_request_context ("/" ):
388380
389381 class Item (db .Document ):
0 commit comments