@@ -90,13 +90,14 @@ def reset(self):
90
90
"SMTP connection not quit" )
91
91
self .__class__ .existing = None
92
92
93
+
93
94
class AppError (Exception ):
94
95
pass
95
96
97
+
96
98
class TestApp (object ):
97
99
98
- # for py.test
99
- disabled = True
100
+ __test__ = False # Ignore with pytest test collection.
100
101
101
102
def __init__ (self , app , namespace = None , relative_to = None ,
102
103
extra_environ = None , pre_request_hook = None ,
@@ -494,10 +495,10 @@ def writelines(self, lines):
494
495
def getvalue (self ):
495
496
return self .captured .getvalue ()
496
497
498
+
497
499
class TestResponse (object ):
498
500
499
- # for py.test
500
- disabled = True
501
+ __test__ = False # Ignore with pytest test collection.
501
502
502
503
"""
503
504
Instances of this class are return by `TestApp
@@ -884,10 +885,10 @@ def showbrowser(self):
884
885
url = 'file:' + fn .replace (os .sep , '/' )
885
886
webbrowser .open_new (url )
886
887
888
+
887
889
class TestRequest (object ):
888
890
889
- # for py.test
890
- disabled = True
891
+ __test__ = False # Ignore with pytest test collection.
891
892
892
893
"""
893
894
Instances of this class are created by `TestApp
@@ -1331,8 +1332,7 @@ class TestFileEnvironment(object):
1331
1332
scripts will be run.
1332
1333
"""
1333
1334
1334
- # for py.test
1335
- disabled = True
1335
+ __test__ = False # Ignore with pytest test collection.
1336
1336
1337
1337
def __init__ (self , base_path , template_path = None ,
1338
1338
script_path = None ,
0 commit comments