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 3
3
from flask import Flask
4
4
from apispec import APISpec
5
5
from apispec .ext .marshmallow import MarshmallowPlugin
6
+ from labthings .server .labthing import LabThing
7
+ from labthings .server .view import View
6
8
7
9
8
10
@pytest .fixture
9
11
def view_cls ():
10
- class ViewClass :
12
+ class ViewClass ( View ) :
11
13
def get (self ):
12
14
pass
13
15
@@ -48,6 +50,13 @@ def app(request):
48
50
return app
49
51
50
52
53
+ @pytest .fixture
54
+ def thing (app ):
55
+ thing = LabThing (app )
56
+ with app .app_context ():
57
+ return thing
58
+
59
+
51
60
@pytest .fixture ()
52
61
def debug_app (request ):
53
62
@@ -90,3 +99,8 @@ def client(app):
90
99
@pytest .fixture
91
100
def static_path (app ):
92
101
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