File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 33from flask import Flask
44from apispec import APISpec
55from apispec .ext .marshmallow import MarshmallowPlugin
6+ from labthings .server .labthing import LabThing
7+ from labthings .server .view import View
68
79
810@pytest .fixture
911def view_cls ():
10- class ViewClass :
12+ class ViewClass ( View ) :
1113 def get (self ):
1214 pass
1315
@@ -48,6 +50,13 @@ def app(request):
4850 return app
4951
5052
53+ @pytest .fixture
54+ def thing (app ):
55+ thing = LabThing (app )
56+ with app .app_context ():
57+ return thing
58+
59+
5160@pytest .fixture ()
5261def debug_app (request ):
5362
@@ -90,3 +99,8 @@ def client(app):
9099@pytest .fixture
91100def static_path (app ):
92101 return os .path .join (os .path .dirname (__file__ ), "static" )
102+
103+
104+ @pytest .fixture
105+ def schemas_path (app ):
106+ return os .path .join (os .path .dirname (__file__ ), "schemas" )
You can’t perform that action at this time.
0 commit comments